Skip to content

Commit c35e8ab

Browse files
committed
Mise à jour eslint
1 parent 2166ad9 commit c35e8ab

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

eslint.config.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default [
5+
{
6+
ignores: ["**/dist/**"],
7+
},
8+
eslint.configs.recommended,
9+
...tseslint.configs.recommended,
10+
{
11+
files: ["**/*.js", "**/*.ts"],
12+
languageOptions: {
13+
parserOptions: {
14+
ecmaVersion: 12,
15+
sourceType: "module",
16+
},
17+
},
18+
rules: {
19+
"@typescript-eslint/no-non-null-assertion": "off",
20+
"@typescript-eslint/no-unused-vars": [
21+
"warn",
22+
{
23+
argsIgnorePattern: "^_",
24+
varsIgnorePattern: "^_",
25+
caughtErrorsIgnorePattern: "^_",
26+
},
27+
],
28+
},
29+
},
30+
];

0 commit comments

Comments
 (0)