generated from webdev-template/js-npm-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
47 lines (47 loc) · 1 KB
/
.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
42
43
44
45
46
47
module.exports = {
parser: 'babel-eslint',
extends: [
'alloy',
],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
}
},
env: {
browser: true,
node: true,
commonjs: true,
es6: true
},
root: true,
rules: {
'for-direction': 'error',
'getter-return': [
'error',
{
allowImplicit: false
}
],
'no-await-in-loop': 'off',
'no-compare-neg-zero': 'error',
'no-cond-assign': [
'error',
'except-parens'
],
'no-console': 'off',
'no-constant-condition': [
'error',
{
checkLoops: false
}
],
'no-control-regex': 'error',
'no-debugger': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
}
}