-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
178 lines (178 loc) · 3.8 KB
/
.eslintrc.yml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
env:
commonjs: true
es6: true
node: true
extends: 'eslint:recommended'
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaVersion: 2018
rules:
# Possible Error
no-await-in-loop: error
no-console: off
no-dupe-else-if: error
no-import-assign: error
no-setter-return: error
no-template-curly-in-string: warn
# Best Practices
block-scoped-var: error
class-methods-use-this: warn
curly: error
default-case: warn
default-param-last: warn
dot-location:
- warn
- property
dot-notation: warn
eqeqeq:
- error
- smart
grouped-accessor-pairs: error
guard-for-in: warn
max-classes-per-file: error
no-alert: warn
no-caller: error
no-case-declarations: error
no-constructor-return: error
no-empty-function: error
no-eval: error
no-extra-bind: warn
no-extra-label: error
no-fallthrough: warn
no-floating-decimal: error
no-global-assign: error
no-implicit-coercion: error
no-implicit-globals: error
no-implied-eval: error
no-invalid-this: error
no-iterator: warn
no-labels: warn
no-lone-blocks: error
no-loop-func: error
no-multi-spaces: warn
no-new: warn
no-new-func: error
no-new-wrappers: error
no-octal: warn
no-octal-escape: warn
no-proto: error
no-return-await: warn
no-script-url: warn
no-self-assign: error
no-self-compare: error
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: warn
no-unused-expressions: warn
no-useless-call: error
no-useless-concat: error
no-useless-return: error
no-void: error
no-warning-comments: warn
prefer-promise-reject-errors: error
require-await: error
wrap-iife:
- error
- inside
yoda: warn
# Variables
init-declarations: error
no-label-var: error
no-shadow: warn
no-shadow-restricted-names: error
no-undef: error
no-undef-init: error
no-undefined: error
# Stylistic Issues
array-bracket-spacing: warn
brace-style: error
camelcase: warn
comma-dangle: error
comma-spacing: error
comma-style: error
eol-last: error
func-call-spacing: error
func-name-matching: error
func-names:
- error
- never
func-style:
- error
- declaration
- allowArrowFunctions: true
implicit-arrow-linebreak:
- error
- beside
indent:
- error
- 2
key-spacing: warn
keyword-spacing: error
lines-between-class-members: error
max-depth: error
max-len:
- warn
- code: 100
ignoreUrls: true
max-lines-per-function:
- warn
- skipBlankLines: true
skipComments: true
max-nested-callbacks: error
max-statements-per-line: error
multiline-ternary:
- error
- always-multiline
new-cap: error
new-parens: error
newline-per-chained-call:
- error
- ignoreChainWithDepth: 2
no-array-constructor: warn
no-lonely-if: warn
no-multiple-empty-lines: warn
no-nested-ternary: error
no-tabs: warn
no-trailing-spaces: warn
no-unneeded-ternary: warn
object-curly-spacing:
- error
- always
object-property-newline:
- error
- allowAllPropertiesOnSameLine: false
semi: error
semi-spacing: error
semi-style: error
# ECMAScript 6
arrow-body-style: error
arrow-parens:
- error
- as-needed
arrow-spacing: error
generator-star-spacing: error
no-confusing-arrow:
- error
- allowParens: true
no-duplicate-imports: error
no-restricted-imports: warn
no-useless-computed-key: error
no-useless-constructor: error
no-var: error
object-shorthand: error
prefer-arrow-callback:
- error
- allowUnboundThis: true
prefer-const: warn
prefer-numeric-literals: warn
prefer-rest-params: warn
prefer-spread: warn
prefer-template: warn
require-yield: error
rest-spread-spacing: error
sort-imports: error
symbol-description: warn
template-curly-spacing: error
yield-star-spacing: error