This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
143 lines (143 loc) · 4.63 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-body-style": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "self", "vm", "$ctrl"],
"eqeqeq": "error",
"eol-last": "error",
"for-direction": "error",
"func-call-spacing": "error",
"generator-star-spacing": "error",
"getter-return": "error",
"global-require": "error",
"handle-callback-err": "error",
"id-blacklist": "error",
"id-match": "error",
"indent": ["error", 2],
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": ["error", {
"overrides": {
"if": {
"after": true
},
"function": {
"after": false
},
"for": {
"after": false
},
"while": {
"after": false
}
}
}],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": "error",
"max-depth": "error",
"max-nested-callbacks": "error",
"no-array-constructor": "error",
"no-await-in-loop": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-continue": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-floating-decimal": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inner-declarations": ["error", "functions"],
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-mixed-requires": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-path-concat": "error",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-properties": "error",
"no-restricted-syntax": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-assign": ["error", { "props": false }],
"no-self-compare": "error",
"no-sequences": "error",
"no-spaced-func": "error",
"no-template-curly-in-string": "error",
"no-undef-init": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": ["error", { "defaultAssignment": true }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-void": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"nonblock-statement-body-position": ["error", "any"],
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"object-curly-spacing": ["error", "always"],
"one-var-declaration-per-line": ["error", "initializations"],
"padding-line-between-statements": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"radix": ["error", "as-needed"],
"require-await": "error",
"rest-spread-spacing": "error",
"semi": [2, "always"],
"semi-style": ["error", "last"],
"space-before-blocks": "error",
"space-in-parens": "error",
"switch-colon-spacing": ["error", { "after": true, "before": false }],
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": ["error", "never"],
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": ["error", "never"]
}
}