mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
chore(NA): avoids imports of server code into public (#67152)
This commit is contained in:
parent
bcf1f1f93e
commit
cd9084d439
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,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/**/*',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue