-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
41 lines (40 loc) · 1.33 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-trailing-spaces": "warn",
"quotes": ["warn", "single"],
"semi": ["warn", "never"],
"comma-dangle": ["warn", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "only-multiline"
}],
"max-len": ["warn", { "code": 100, "tabWidth": 2 }],
"no-constant-condition": ["error", { "checkLoops": false }],
"eol-last": ["warn", "always"],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"args": "after-used",
"varsIgnorePattern": "^_+\\d*$",
"ignoreRestSiblings": true
}],
// Error when using the `any` type
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/require-array-sort-compare": ["error", { "ignoreStringArrays": true }]
}
}