-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
41 lines (41 loc) · 1.04 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
module.exports = {
plugins: ['node', 'jest'],
extends: ['plugin:node/recommended', 'airbnb-base'],
rules: {
'node/exports-style': ['error', 'module.exports'],
'prefer-destructuring': ['error', { object: false, array: false }],
strict: 0,
'comma-dangle': ['error', {
arrays: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
imports: 'always-multiline',
objects: 'always-multiline',
}],
'no-console': 0,
'prefer-object-spread': 0,
'default-param-last': 'off',
'prefer-regex-literals': 'off',
'max-len': ['error', {
code: 100,
tabWidth: 2,
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignorePattern: '\\* @typedef \\{import',
}],
},
env: {
node: true,
'jest/globals': true,
},
overrides: [{
files: '"./tests/**/*.spec.js"',
rules: {
'node/no-unpublished-require': 0,
'node/no-missing-require': 0,
},
}],
};