From 9fbaba94a0acfcd02fc4aa2d9eebd5fc22fbac10 Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Thu, 7 May 2020 10:56:36 +0300 Subject: [PATCH] [ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (#65471) --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index a8a6c5e68dd8cc..0b098474d83352 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -244,6 +244,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,