-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.16 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
},
extends: ['eslint:recommended', 'airbnb-base'],
env: {mocha: true,
},
rules: {
strict: 0,
'max-len': ['error', { code: 120 }],
'quote-props': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'func-names': ['error', 'as-needed'],
'prefer-const': 'warn',
radix: 'off',
'no-restricted-syntax': ['error', "BinaryExpression[operator='at']"],
'no-await-in-loop': 'off',
'no-trailing-spaces': 'off',
'no-throw-literal': 'off',
'object-curly-spacing': 'off',
'object-curly-newline': [
'error',
{
ObjectExpression: { multiline: true, minProperties: 6, consistent: true },
ObjectPattern: { multiline: true, minProperties: 6, consistent: true },
ImportDeclaration: { multiline: true, minProperties: 6, consistent: true },
ExportDeclaration: { multiline: true, minProperties: 6, consistent: true },
},
],
'global-require': 'off',
'import/no-dynamic-require': 'off',
'node/no-unsupported-features/es-syntax': ['error', { ignores: ['modules'] }],
},
}