From ee91da1a03d85ee10f239a498fd30df50b0bca4a Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Wed, 6 May 2020 16:04:58 +0300 Subject: [PATCH] [ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index dde0ce010d4d44..56c06902e062b5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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,