-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
155 lines (155 loc) · 3.17 KB
/
.eslintrc.yaml
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
---
parserOptions:
ecmaVersion: 8
env:
es6: true
node: true
extends: eslint:recommended
rules:
array-callback-return: warn
consistent-return: warn
curly:
- error
- all
default-case: warn
dot-location:
- error
- property
eqeqeq:
- error
- smart
guard-for-in: warn
no-div-regex: warn
no-empty-function: warn
no-else-return: warn
no-eq-null: error
no-eval: error
no-extend-native: error
no-extra-bind: warn
no-extra-label: warn
no-fallthrough: warn
no-floating-decimal: warn
no-implicit-globals: error
no-implied-eval: error
no-invalid-this: warn
no-iterator: warn
no-labels: warn
no-lone-blocks: warn
no-loop-func: error
no-magic-numbers: error
no-native-reassign: error
no-new: warn
no-new-func: error
no-new-wrappers: error
no-param-reassign:
- error
- props: false
no-proto: error
no-redeclare: error
no-return-assign: error
no-self-assign: warn
no-self-compare: warn
no-trailing-spaces: error
no-throw-literal: warn
no-unmodified-loop-condition: warn
no-unused-expressions: warn
no-useless-call: error
no-useless-concat: error
no-with: error
radix: warn
semi: error
vars-on-top: warn
wrap-iife:
- warn
- inside
yoda: warn
strict:
- error
- global
no-catch-shadow: warn
no-shadow: warn
no-shadow-restricted-names: error
no-undef-init: warn
no-undefined: error
no-use-before-define: warn
callback-return: error
global-require: warn
handle-callback-err: error
no-mixed-requires:
- error
-
grouping: true
allowCall: true
no-new-require: error
no-process-env: error
no-process-exit: error
no-sync: error
brace-style: error
camelcase: error
comma-style:
- warn
- last
consistent-this: error
func-names: error
func-style:
- error
- declaration
- allowArrowFunctions: true
key-spacing: warn
lines-around-comment: warn
max-depth: error
max-len:
- error
- 120
- ignoreUrls: true
max-nested-callbacks:
- error
- 5
new-cap:
- warn
- properties: false
new-parens: error
newline-after-var: warn
newline-before-return: warn
newline-per-chained-call: error
no-array-constructor: warn
no-lonely-if: warn
no-nested-ternary: warn
no-new-object: error
no-unneeded-ternary: error
object-property-newline: warn
one-var-declaration-per-line:
- warn
- always
operator-linebreak:
- warn
- before
require-jsdoc:
- warn
- require:
FunctionDeclaration: true
MethodDefinition: true
ClassDeclaration: true
valid-jsdoc:
- error
# false if and only if the function or method has a return statement (this option value does apply to constructors)
# @see http://eslint.org/docs/rules/valid-jsdoc
- requireReturn: false
no-unsafe-finally: error
arrow-body-style: warn
no-useless-computed-key: error
no-useless-rename: error
no-var: error
object-shorthand:
- warn
- always
prefer-arrow-callback:
- warn
- allowNamedFunctions: true
prefer-const: error
prefer-reflect: warn
prefer-rest-params: error
prefer-spread: error
prefer-template: warn
require-yield: error
eol-last: error