diff --git a/.eslintrc.js b/.eslintrc.js index 866a4bd704d67..58b74d0bf5c25 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -350,6 +350,11 @@ module.exports = { ], allowSameFolder: true, }, + { + target: ['src/core/**/*'], + from: ['x-pack/**/*'], + errorMessage: 'OSS cannot import x-pack files.', + }, { target: ['src/core/**/*'], from: [