-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.03 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 = {
env: {
es6: true,
node: true,
mocha: true,
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
],
parser: 'babel-eslint',
settings: {
'import/resolver': [
{
node: {
extensions: ['.js'],
}
}
],
},
rules: {
quotes: ['error', 'single'],
'comma-dangle': [
'error',
{
objects: 'always-multiline',
arrays: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
},
],
indent: ['error', 4],
'max-len': ['error', 200],
'no-trailing-spaces': ['error', { skipBlankLines: true }],
'no-extra-boolean-cast': 'off',
'no-nested-ternary': 'off',
'import/no-unresolved': [2, { commonjs: true }],
},
};