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.
This commit is contained in:
@@ -72,7 +72,9 @@ module.exports = {
|
|||||||
node: true,
|
node: true,
|
||||||
jest: true,
|
jest: true,
|
||||||
},
|
},
|
||||||
ignorePatterns: [],
|
ignorePatterns: [
|
||||||
|
"packages/admin-next/dashboard/**/dist"
|
||||||
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: ["*.ts"],
|
files: ["*.ts"],
|
||||||
@@ -232,7 +234,6 @@ module.exports = {
|
|||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"plugin:react-hooks/recommended",
|
"plugin:react-hooks/recommended",
|
||||||
],
|
],
|
||||||
ignorePatterns: ["dist"],
|
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: "./packages/admin-next/dashboard/tsconfig.json",
|
project: "./packages/admin-next/dashboard/tsconfig.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user