-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.52 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
{
"parserOptions": {
"ecmaVersion": 2017
},
"root": true,
"env": {
"es6": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single"],
"no-var": ["error" ],
"no-use-before-define": [ "error" ],
"no-unused-vars": [ "warn" ],
"array-bracket-newline": [ "error", { "multiline": true } ],
"computed-property-spacing": ["error", "always"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"object-curly-newline": ["error", { "multiline": true, "minProperties": 4 }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"eol-last": ["error", "always"],
"multiline-ternary": ["error", "always-multiline"],
"lines-between-class-members": ["error", "always"],
"lines-around-comment": ["error", { "beforeBlockComment": true }],
"dot-location": ["error", "property"],
"no-empty-function": "error",
"arrow-spacing": "error",
"brace-style": ["error", "allman", { "allowSingleLine": true }],
"comma-spacing": ["error", { "before": false, "after": true }],
"indent": ["error", 4],
"spaced-comment": ["error", "always"]
}
}