-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
106 lines (102 loc) · 3.69 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked", "plugin:@typescript-eslint/stylistic-type-checked"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2021,
"project": "tsconfig.json"
},
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/member-delimiter-style": "error",
"no-compare-neg-zero": "error",
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unsafe-negation": "error",
"accessor-pairs": "warn",
"arrow-body-style": "error",
"consistent-this": "error",
"dot-notation": "error",
"func-name-matching": "error",
"func-names": "error",
"no-array-constructor": "error",
"no-empty": "off",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-invalid-this": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-var": "error",
"no-warning-comments": "warn",
"operator-assignment": "error",
"prefer-arrow-callback": "error",
"prefer-numeric-literals": "error",
"prefer-object-has-own": "error",
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-template": "error",
"quote-props": ["error", "as-needed"],
"require-await": "error",
"spaced-comment": "error",
"strict": ["error", "global"],
"yoda": "error",
"array-bracket-spacing": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-style": ["error", "expression"],
"key-spacing": "error",
"keyword-spacing": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": false }],
"rest-spread-spacing": "error",
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": "error"
}
}