-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 loc) · 2.34 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint", "align" ],
"extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ],
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"align/member-indent-align": [ "error" ],
"array-callback-return": [ "error", { "checkForEach": true } ],
"curly": [ "error", "all" ],
"dot-location": [ "error", "property" ],
"eqeqeq": [ "error", "always" ],
"no-return-assign": [ "error" ],
"no-return-await": [ "error" ],
"prefer-regex-literals": [ "error" ],
"array-bracket-newline": [ "error", "consistent" ],
"array-bracket-spacing": [ "error", "always" ],
"block-spacing": [ "error" ],
"brace-style": [ "error", "1tbs" ],
"eol-last": [ "error", "always" ],
"indent": [ "error", 4, {
"SwitchCase": 1,
"VariableDeclarator": "first",
"MemberExpression": "off",
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" },
"CallExpression": { "arguments": "first" },
"ArrayExpression": "first",
"ObjectExpression": "first"
} ],
"key-spacing": [ "error" ],
"keyword-spacing": [ "error" ],
"linebreak-style": [ "error", "unix" ],
"new-parens": [ "error", "always" ],
"no-lonely-if": [ "error" ],
"no-trailing-spaces": [ "error" ],
"no-unneeded-ternary": [ "error" ],
"no-whitespace-before-property": [ "error" ],
"object-curly-newline": [ "error", { "consistent": true } ],
"object-curly-spacing": [ "error", "always" ],
"one-var-declaration-per-line": [ "error" ],
"operator-assignment": [ "error", "always" ],
"operator-linebreak": [ "error", "before" ],
"prefer-exponentiation-operator": "error",
"quote-props": [ "error", "consistent-as-needed" ],
"quotes": [ "error", "single" ],
"semi": [ "error" ],
"semi-style": [ "error" ],
"space-infix-ops": [ "error" ],
"arrow-body-style": [ "error", "as-needed" ],
"arrow-parens": [ "error", "as-needed" ],
"no-var": "error",
"prefer-const": [ "error", { "destructuring": "all" } ]
}
}