-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
130 lines (130 loc) · 3.6 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"extends": "eslint:recommended",
"plugins": [ "import", "sort-destructure-keys" ],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"reportUnusedDisableDirectives": true,
"rules": {
"arrow-body-style": 2,
"array-bracket-newline": [ 2, "consistent" ],
"array-bracket-spacing": [ 2, "always", {
"arraysInArrays": false,
"objectsInArrays": false
} ],
"arrow-spacing": 2,
"block-spacing": [ 2, "always" ],
"comma-dangle": [ 2, "always-multiline" ],
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"curly": 2,
"dot-location": [ 2, "property" ],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": [ 2, "smart" ],
"func-call-spacing": 2,
"function-paren-newline": [ 2, "consistent" ],
"id-blacklist": [
"error", "any",
"Number", "number",
"String", "string",
"Boolean", "boolean",
"function", "Function"
],
"import/order": 2,
"indent": [ 2, 2, { "SwitchCase": 1 } ],
"key-spacing": 2,
"keyword-spacing": 2,
"lines-between-class-members": [ 2, "always", { "exceptAfterSingleLine": true } ],
"max-classes-per-file": [ 2, 1 ],
"max-len": [ 1, {
"code": 120,
"ignoreTrailingComments": true
} ],
"new-parens": 2,
"no-array-constructor": 2,
"no-case-declarations": 0,
"no-caller": 2,
"no-console": 0,
"no-div-regex": 2,
"no-else-return": 2,
"no-empty-function": [ 2, { "allow": [ "arrowFunctions" ] } ],
"no-eval": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-extra-parens": 2,
"no-fallthrough": 0,
"no-floating-decimal": 2,
"no-implicit-coercion": [ 2, { "allow": [ "!!" ] } ],
"no-import-assign": 2,
"no-label-var": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": [ 1, {
"max": 1,
"maxEOF": 0
} ],
"no-multi-spaces": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-path-concat": 2,
"no-plusplus": 2,
"no-shadow": [ 2, { "hoist": "all" } ],
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-unused-vars": [ 2, { "argsIgnorePattern": "^_" } ],
"no-useless-computed-key": 2,
"no-useless-rename": 2,
"no-useless-return": 2,
"no-var": 2,
"no-whitespace-before-property": 2,
"object-curly-newline": [ 2, {
"multiline": true,
"consistent": true
} ],
"object-curly-spacing": [ 2, "always" ],
"object-shorthand": 2,
"one-var": [ 2, "never" ],
"operator-assignment": 2,
"operator-linebreak": [ 2, "after" ],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-destructuring": 2,
"prefer-exponentiation-operator": 2,
"prefer-object-spread": 2,
"prefer-template": 2,
"quote-props": [ 2, "consistent-as-needed", { "numbers": true } ],
"require-await": 2,
"rest-spread-spacing": 2,
"space-before-function-paren": [ 2, {
"anonymous": "never",
"named": "never"
} ],
"quotes": [ 2, "backtick" ],
"semi": [ 2, "always" ],
"semi-spacing": 2,
"semi-style": [ 2, "last" ],
"sort-destructure-keys/sort-destructure-keys": 2,
"sort-imports": [ 2, {
"ignoreCase": true,
"ignoreDeclarationSort": true
} ],
"sort-vars": [ 2, { "ignoreCase": true } ],
"space-before-blocks": 2,
"space-infix-ops": 2,
"space-in-parens": 2,
"space-unary-ops": 2,
"spaced-comment": 2,
"switch-colon-spacing": 2,
"template-curly-spacing": 2,
"wrap-iife": 2
}
}