Skip to content

Commit 642b03b

Browse files
authored
[ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (#65471)
1 parent c5d4d9e commit 642b03b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ module.exports = {
238238
],
239239
from: [
240240
'(src|x-pack)/plugins/**/(public|server)/**/*',
241+
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,ts}',
241242
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,ts,tsx}',
242243
],
243244
allowSameFolder: true,

0 commit comments

Comments
 (0)