-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
75 lines (74 loc) · 2.16 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"root": true,
"env": {
"browser": false,
"node": true,
"es2015": true,
"es2021": true,
"es2022": true,
"es2023": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:github/recommended",
"plugin:sonarjs/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"ecmaVersion": 2015,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"github",
"unicorn",
"sonarjs"
],
"rules": {
// Handled, often more gracefully, by TypeScript
"import/no-unresolved": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-inferrable-types": "off",
"no-undef": "off",
"no-redeclare": "off",
"no-shadow": "off",
"no-inner-declarations": "off",
"no-dupe-class-members": "off",
// Either I don't care or it's an unwanted style enforcement
"eslint-comments/no-use": ["error", {"allow": ["eslint-disable", "eslint-disable-next-line"]}],
"@typescript-eslint/ban-ts-comment": ["warn", {
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": true,
"minimumDescriptionLength": 3
}],
"@typescript-eslint/ban-types": "warn",
"sonarjs/cognitive-complexity": "off",
"no-empty": "off",
"camelcase": "off",
"prettier/prettier": "off",
"no-console": "off",
"no-var": "off",
"eqeqeq": "off",
"sonarjs/no-duplicate-string": "off",
"github/no-then": "off",
"semi": "warn",
"i18n-text/no-en": "off",
"import/extensions": "warn",
"filenames/match-regex": "off",
"import/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"prefer-template": "off",
"func-style": "off",
"@typescript-eslint/no-this-alias": "off",
"github/array-foreach": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}