-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (39 loc) · 1.08 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
module.exports = {
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true,
destructuring: true
}
},
env: {
node: true
},
extends: ['airbnb-base'],
rules: {
indent: ['error', 4],
'no-console': 0,
'comma-dangle': ['error', 'never'],
extensions: 0,
'arrow-body-style': ['error', 'as-needed'],
'consistent-return': [0],
'no-param-reassign': [2, {
'props': false
}],
'space-before-function-paren': ['error', 'always'],
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-useless-constructor': 2,
'no-class-assign': [0],
'array-callback-return': [0],
'no-case-declarations': 0,
'global-require': [0],
'func-names': ['warn', 'as-needed'],
'import/no-extraneous-dependencies': 0,
'no-unused-vars': [2, { 'varsIgnorePattern': '^_|^id' }],
},
settings: {
'import/ignore': ['js']
}
};