Skip to content

Commit

Permalink
[ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports…
Browse files Browse the repository at this point in the history
… mocks from folder
  • Loading branch information
alexwizp committed May 6, 2020
1 parent 46b91cc commit ee91da1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ module.exports = {
],
from: [
'(src|x-pack)/plugins/**/(public|server)/**/*',
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,ts}',
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,ts,tsx}',
],
allowSameFolder: true,
Expand Down

0 comments on commit ee91da1

Please sign in to comment.