Skip to content

Commit ab89228

Browse files
committed
chore: don't lint dist
1 parent 88db86f commit ab89228

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

eslint.config.mjs

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,42 @@ const __dirname = path.dirname(__filename);
1010
const compat = new FlatCompat({
1111
baseDirectory: __dirname,
1212
recommendedConfig: js.configs.recommended,
13-
allConfig: js.configs.all
13+
allConfig: js.configs.all,
1414
});
1515

16-
export default [...compat.extends(
17-
"eslint:recommended",
18-
"plugin:@typescript-eslint/eslint-recommended",
19-
"plugin:@typescript-eslint/recommended",
20-
), {
21-
plugins: {
22-
"@typescript-eslint": typescriptEslint,
16+
export default [
17+
{
18+
ignores: ["dist/"],
2319
},
20+
...compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/eslint-recommended",
23+
"plugin:@typescript-eslint/recommended",
24+
),
25+
{
26+
plugins: {
27+
"@typescript-eslint": typescriptEslint,
28+
},
2429

25-
languageOptions: {
26-
parser: tsParser,
27-
},
30+
languageOptions: {
31+
parser: tsParser,
32+
},
2833

29-
rules: {
30-
"@typescript-eslint/no-non-null-assertion": "off",
34+
rules: {
35+
"@typescript-eslint/no-non-null-assertion": "off",
3136

32-
"@typescript-eslint/no-unused-vars": ["error", {
33-
args: "all",
34-
argsIgnorePattern: "^_",
35-
caughtErrors: "all",
36-
caughtErrorsIgnorePattern: "^_",
37-
destructuredArrayIgnorePattern: "^_",
38-
varsIgnorePattern: "^_",
39-
ignoreRestSiblings: true,
40-
}],
37+
"@typescript-eslint/no-unused-vars": [
38+
"error",
39+
{
40+
args: "all",
41+
argsIgnorePattern: "^_",
42+
caughtErrors: "all",
43+
caughtErrorsIgnorePattern: "^_",
44+
destructuredArrayIgnorePattern: "^_",
45+
varsIgnorePattern: "^_",
46+
ignoreRestSiblings: true,
47+
},
48+
],
49+
},
4150
},
42-
}];
51+
];

0 commit comments

Comments
 (0)