-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
85 lines (85 loc) · 2.54 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
{
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
},
"extends": "plugin:@typescript-eslint/eslint-recommended",
"parser": "@typescript-eslint/parser",
"rules": {
"no-var": "error",
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"block-spacing": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error" , { "max": 1 }],
"no-trailing-spaces": "error",
"space-infix-ops": "error",
"dot-notation": "error",
"eqeqeq": "error",
"quotes": ["error", "double"],
"no-else-return": "error",
"no-loop-func": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"no-undef": "off",
"comma-dangle": "warn",
"no-unused-vars": ["error", { "vars": "local", "args": "all" }],
"no-use-before-define": "error",
"no-const-assign": "error",
"space-before-blocks": "error",
"no-unexpected-multiline": "error",
"object-curly-spacing": ["error", "always"],
"quote-props": ["error", "always"],
"max-len": ["error", {
"code": 200,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true
}],
"no-debugger": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-extra-parens": "error",
"no-func-assign": "error",
"no-irregular-whitespace": "error",
"no-sparse-arrays": "error",
"no-unreachable": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"block-scoped-var": "error",
"no-caller": "error",
"curly": "error",
"no-case-declarations": "error",
"no-floating-decimal": "error",
"no-eq-null": "error",
"no-empty-function": "error",
"no-empty-pattern": "error",
"no-extend-native": "error",
"dot-location": ["error", "property"],
"no-global-assign": "error",
"no-implicit-globals": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-iterator": "error",
"no-new": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-useless-concat": "error",
"no-useless-call": "error",
"no-useless-return": "error",
"no-unused-expressions": "error",
"no-class-assign": "error",
"no-sequences": "error",
"no-dupe-args": "error",
"no-extra-boolean-cast": "error",
"no-obj-calls": "error",
"no-console": "off",
"no-extra-semi": "warn"
}
}