-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
46 lines (45 loc) · 1.15 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"globals": {
"NodeJS": true
},
"extends": ["plugin:@typescript-eslint/recommended", "plugin:@stylistic/recommended-extends", "eslint:recommended"],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "@stylistic"],
"rules": {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@stylistic/semi": ["error", "always"],
"@stylistic/space-infix-ops": "off",
"@stylistic/brace-style": "off"
}
}