fix(dev): ignore json files from linting

This commit is contained in:
Guz
2024-10-13 20:29:44 -03:00
parent 36ab51b337
commit 8388e2763e
2 changed files with 16 additions and 9 deletions

View File

@@ -24,6 +24,9 @@ const config = [
ignores: [
'node_modules',
'package-lock.json',
'package.json',
'tsconfig.json',
'.vscode',
'dist',
],
},
@@ -32,6 +35,16 @@ const config = [
js.configs.recommended,
(/** @type {Config} */ (ts.configs.eslintRecommended)),
...(/** @type {Config[]} */ (ts.configs.strictTypeChecked)),
{
languageOptions: {
parserOptions: {
projectService: true,
// @ts-expect-error import.meta.dirname is not defined but works in NodeJS
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
tsconfigRootDir: import.meta.dirname,
},
},
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
(/** @type {Config} */ (imports.flatConfigs.recommended)),
{
@@ -70,10 +83,6 @@ const config = [
ecmaFeatures: {
impliedStrict: true,
},
projectService: true,
// @ts-expect-error import.meta.dirname is not defined but works in NodeJS
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
tsconfigRootDir: import.meta.dirname,
},
sourceType: 'module',
},

View File

@@ -11,18 +11,16 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ESNext",
"target": "ESNext"
},
"include": [
"./assets/**/*",
"./eslint.config.js",
"./uno.config.js",
"./package.json",
"./tsconfig.json",
"./.vscode/*.json",
"**/*.json"
],
"exclude": [
"./node_modules/**",
"./dist",
"./dist"
]
}