-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
56 lines (56 loc) · 1.36 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
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
root: true,
parser: 'babel-eslint',
env: {
browser: false,
node: true
},
extends: [
'airbnb-base'
],
rules: {
'import/prefer-default-export': 'off',
'import/no-mutable-exports': 'off',
'import/no-extraneous-dependencies': 'off',
'no-console': 'off',
'no-empty': ['error', {allowEmptyCatch: true}],
'no-use-before-define': ['error', {'functions': false}],
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-new': 'off',
'arrow-body-style': 'off',
'no-empty-function': 'off',
'no-nested-ternary': 'off',
'no-return-assign': 'off',
'no-unused-vars': 'error',
'global-require': 'off',
'object-curly-spacing': 'off',
'max-len': 'off',
'comma-dangle': 'off',
'prefer-destructuring': 'off',
'class-methods-use-this': 'off',
'eol-last': 'off',
'eqeqeq': 'off',
'prefer-arrow-callback': 'off',
'prefer-promise-reject-errors': 'off',
'generator-star-spacing': 'off',
'new-cap': 'off',
'no-cond-assign': 'off'
},
overrides: [{
files: ["test/**"],
env: {
jest: true
},
extends: [
'plugin:react/recommended',
'plugin:react-directives/recommended'
],
rules: {
'react/prop-types': 'off',
'max-classes-per-file': 'off',
'no-undef': 'off'
}
}]
};