forked from danburzo/percollate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (40 loc) · 881 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'script'
},
rules: {
'array-callback-return': 2,
'consistent-return': 2,
'constructor-super': 1,
'no-cond-assign': 2,
'no-console': [1, { allow: ['log', 'error'] }],
'no-const-assign': 1,
'no-constant-condition': 2,
'no-dupe-keys': 2,
'no-else-return': 2,
'no-extra-bind': 2,
'no-magic-numbers': 0,
'no-param-reassign': 2,
'no-redeclare': 2,
'no-return-assign': 2,
'no-sequences': 2,
'no-this-before-super': 1,
'no-undef': 2,
'no-unreachable': 2,
'no-unused-expressions': 1,
'no-unused-vars': [1, { args: 'after-used', ignoreRestSiblings: true }],
'no-use-before-define': [2, { functions: false }],
'no-useless-call': 2,
'use-isnan': 2,
'valid-typeof': 2,
eqeqeq: 2,
yoda: 1
}
};