-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
65 lines (65 loc) · 1.61 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-var": 1,
"no-alert": 1,
"no-console": 0,
"no-redeclare": 1,
"no-empty": 1,
"no-func-assign": 1,
"no-inner-declarations": 1,
"no-invalid-regexp": 1,
"no-unexpected-multiline": 1,
"no-unused-vars": 1,
"no-use-before-define": 1,
"block-scoped-var": 1,
"block-spacing": 1,
"padded-blocks": 0,
"padding-line-between-statements": 0,
"capitalized-comments": 1,
"curly": 0,
"max-params": 1,
// "consistent-return": 2,
"multiline-comment-style": ["error", "starred-block"],
"no-else-return": 1,
"no-extra-bind": 1,
"no-extend-native": 1,
"no-extra-semi": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-multi-str": 1,
"no-multi-spaces": 1,
"no-unneeded-ternary": 1,
"no-unused-expressions": 1,
"no-useless-catch": 1,
"no-useless-return": 1,
"prefer-arrow-callback": 2,
"prefer-const": 1,
"prefer-destructuring": 1,
"prefer-spread": 1,
"prefer-template": 1,
"spaced-comment": 1,
"arrow-spacing": 1,
"comma-dangle": 0,
"function-call-argument-newline": 0,
"indent": 0,
"key-spacing": 1,
"no-multiple-empty-lines": 1,
"no-trailing-spaces": 1,
"object-curly-spacing": 0,
"rest-spread-spacing": 1,
"space-in-parens": 0,
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"space-before-blocks": ["error", { "functions": "never", "keywords": "always", "classes": "always" }]
}
}