[ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (#65471)

This commit is contained in:
Alexey Antonov 2020-05-07 10:56:36 +03:00 committed by GitHub
parent c5d4d9e68a
commit 642b03b41d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,