-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
58 lines (58 loc) · 2.25 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
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": "."
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/triple-slash-reference": "off",
"array-bracket-newline": [ "warn", { "minItems": 1 } ],
"array-element-newline": [ "warn", { "minItems": 1 } ],
"arrow-body-style": ["warn", "always"],
"brace-style": "warn",
"comma-dangle": [ "warn", "always-multiline" ],
"eqeqeq": [ "warn", "always" ],
"func-call-spacing": [ "warn", "never" ],
"function-call-argument-newline": [ "warn", "consistent" ],
"indent": [ "warn", 4, { "SwitchCase": 1 } ],
"keyword-spacing": "warn",
"lines-between-class-members": [ "warn", "always" ],
"no-extra-boolean-cast": "off",
"no-multi-spaces": ["warn", { "exceptions": { "Property": false, "VariableDeclarator": false } }],
"no-multiple-empty-lines": [ "warn", { "max": 1 } ],
"no-trailing-spaces": "warn",
"no-var": "off",
"no-whitespace-before-property": "warn",
"object-curly-newline": [ "warn", {
"ObjectExpression": { "minProperties": 1 },
"ObjectPattern": { "minProperties": 1 },
"ImportDeclaration": "never",
"ExportDeclaration": "never"
} ],
"object-property-newline": "warn",
"object-shorthand": [ "warn", "never" ],
"prefer-const": "off",
"prefer-template": "warn",
"quote-props": [ "warn", "consistent" ],
"quotes": [ "warn", "single" ],
"space-before-function-paren": [ "warn", "never" ],
"space-in-parens": [ "warn", "never" ],
"switch-colon-spacing": "warn",
"semi": ["warn", "always"],
"semi-spacing": ["warn", { "before": false, "after": true }],
"template-curly-spacing": ["warn", "always"]
}
}