Skip to content

Commit

Permalink
Remove ESLint rule for OSS to X-Pack restricted paths
Browse files Browse the repository at this point in the history
This is no longer necessary now that we validate OSS to X-Pack plugin
dependencies in the plugins service. Since there is no way to
differentiate "optional" and "required" dependencies in ESLint rules,
this rule needs to be removed to allow such optional dependencies.
  • Loading branch information
jportner committed Aug 2, 2021
1 parent 0792111 commit 774ae1b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,6 @@ module.exports = {
errorMessage:
'Server modules cannot be imported into client modules or shared modules.',
},
{
target: ['src/**/*'],
from: ['x-pack/**/*'],
errorMessage: 'OSS cannot import x-pack files.',
},
{
target: ['src/core/**/*'],
from: ['plugins/**/*', 'src/plugins/**/*'],
Expand Down

0 comments on commit 774ae1b

Please sign in to comment.