From 33ff2415ae45353afc0659e19e1bee0bbb668bb6 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Sat, 13 Jan 2024 15:21:16 +0200 Subject: [PATCH] fix: eslint configurations in the root (#6049) When running `yarn lint` in the root of the monorepo, we get the following error: ```bash Oops! Something went wrong! :( ESLint: 8.44.0 Error: ESLint configuration in .eslintrc.js is invalid: - Unexpected top-level property "overrides[4].ignorePatterns". ``` Rmoving the `ignorePatterns` in configurations for `packages/admin-next/dashboard/**/*` and instead adding the path `packages/admin-next/dashboard/**/dist` fixes the issue. --- .eslintrc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8c3962e6ab..be653df480 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -72,7 +72,9 @@ module.exports = { node: true, jest: true, }, - ignorePatterns: [], + ignorePatterns: [ + "packages/admin-next/dashboard/**/dist" + ], overrides: [ { files: ["*.ts"], @@ -232,7 +234,6 @@ module.exports = { "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended", ], - ignorePatterns: ["dist"], parser: "@typescript-eslint/parser", parserOptions: { project: "./packages/admin-next/dashboard/tsconfig.json",