-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.11 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
module.exports = {
plugins: [
'mocha',
],
extends: ['airbnb-base'],
rules: {
'consistent-return': 'off',
'max-len': 'off',
'no-underscore-dangle': 0,
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/order': [
'error',
{
'newlines-between': 'always-and-inside-groups',
groups: [['builtin', 'external'], 'internal', ['parent', 'sibling', 'index']],
},
],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0, maxBOF: 0 }],
},
env: {
node: true,
},
overrides: [
{
files: [
'test/**/*.js',
],
env: {
mocha: true,
},
rules: {
'no-undef': 'off',
'import/no-dynamic-require': 'off',
'no-unused-expressions': 'off',
'import/no-extraneous-dependencies': 'off',
'global-require': 'off',
},
},
],
};