Skip to content

Commit

Permalink
chore(NA): avoids imports of server code into public (#67152) (#67196)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored May 21, 2020
1 parent 32ab9e3 commit c0a1e90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ module.exports = {
from: ['src/core/utils/**/*'],
errorMessage: `Plugins may only import from src/core/server and src/core/public.`,
},
{
target: ['(src|x-pack)/plugins/*/public/**/*'],
from: ['(src|x-pack)/plugins/*/server/**/*'],
errorMessage: `Public code can not import from server, use a common directory.`,
},
{
target: [
'(src|x-pack)/legacy/**/*',
Expand Down

0 comments on commit c0a1e90

Please sign in to comment.