-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
31 lines (31 loc) · 1.07 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
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
mocha: true
},
extends: [
'standard'
],
parserOptions: {
ecmaVersion: 12
},
rules: {
indent: ['error', 2],
'space-in-parens': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
camelcase: ['error', { properties: 'never', allow: ['request_hash', 'checked_hash', /influx_.*/] }],
radix: ['error', 'as-needed'],
'no-multiple-empty-lines': 'error',
'max-params': ['error', { max: 5 }],
'new-cap': ['warn', { properties: false }],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: ['const', 'var', 'let', 'multiline-const', 'multiline-var', 'multiline-let'], next: '*' },
{ blankLine: 'any', prev: ['const', 'var', 'let', 'multiline-const', 'multiline-var', 'multiline-let'], next: ['const', 'var', 'let', 'multiline-const', 'multiline-var', 'multiline-let'] },
{ blankLine: 'always', prev: ['block', 'block-like'], next: '*' },
{ blankLine: 'always', prev: '*', next: 'return' }
]
}
}