-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
63 lines (63 loc) · 1.89 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"eslint-config-prettier",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:typescript-sort-keys/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-prettier",
"import",
"typescript-sort-keys"
],
"rules": {
"linebreak-style": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"singleQuote": true,
"printWidth": 120
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-debugger": "off",
"no-shadow": "off",
"no-prototype-builtins": "off",
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"sort-keys": ["error", "asc", {"caseSensitive": true, "natural": false, "minKeys": 2}],
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error",
"import/extensions": "off",
"no-duplicate-imports": ["error", { "includeExports": true }]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [ ".ts", ".tsx" ]
}
}
}