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:
Shahed Nasser
2024-01-13 15:21:16 +02:00
committed by GitHub
parent 57e00e7803
commit 33ff2415ae

View File

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