-
Notifications
You must be signed in to change notification settings - Fork 31
/
.eslintrc.json
54 lines (54 loc) · 2 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
{
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [ "@typescript-eslint" ],
"rules": {
"brace-style": ["error", "allman", { "allowSingleLine": true }],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always"],
"max-len": ["error", { "code": 120 }],
"new-cap": "error",
"no-irregular-whitespace": ["off"],
"no-multiple-empty-lines": "error",
"no-nested-ternary": "error",
"no-trailing-spaces": "error",
"no-unexpected-multiline": ["off"],
"object-curly-spacing": ["error", "always"],
"object-property-newline": "error",
"one-var": ["error", "never"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-in-parens": ["error", "always"],
"spaced-comment": ["error", "always", {
"block": { "balanced": true },
"exceptions": []
}],
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": true }],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-non-null-assertion": ["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/no-unused-vars": ["error"],
"@typescript-eslint/restrict-template-expressions": ["error"]
}
}