-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.eslintrc.js
34 lines (34 loc) · 852 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
module.exports = {
extends: ['standard', 'prettier'],
rules: {
camelcase: 'off',
'multiline-ternary': 'off',
'no-labels': 'warn',
'n/no-deprecated-api': 'warn',
'no-cond-assign': 'warn',
'no-control-regex': 'warn',
'no-empty': 'warn',
'no-misleading-character-class': 'warn',
'no-mixed-operators': 'warn',
'no-new-func': 'warn',
'no-prototype-builtins': 'off',
'no-unmodified-loop-condition': 'warn',
'no-unreachable-loop': 'warn',
'no-use-before-define': 'warn',
'prefer-const': 'warn',
'valid-typeof': 'warn',
'max-len': [
'warn',
{
code: 120,
ignoreUrls: true,
ignorePattern: '(^module\\.exports|.+\\.\\./info/ini_get.+|^ //\\s+_?(returns|example))',
},
],
},
env: {
mocha: true,
browser: true,
node: true,
},
}