-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
76 lines (75 loc) ยท 1.56 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
const {resolve} = require('path');
module.exports = {
parser: 'babel-eslint',
'extends': 'airbnb',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: ['import'],
env: {
browser: true
},
rules: {
'nonblock-statement-body-position': 0,
'jsx-quotes': [
'error',
'prefer-single'
],
'object-curly-spacing': [
'error',
'never'
],
'no-restricted-syntax': [
'error',
'LabeledStatement',
'WithStatement',
],
'no-new': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/mouse-events-have-key-events': 0,
'import/no-extraneous-dependencies': 0,
'one-var': 0,
'one-var-declaration-per-line': 0,
'no-plusplus': 0,
'no-console': 0,
'no-underscore-dangle': 0,
'react/prop-types': 0,
'object-curly-newline': 0,
'no-unused-expressions': 0,
'react/forbid-prop-types': 0,
'react/no-danger': 0,
curly: 0,
'new-parens': 0,
'no-continue': 0,
'no-param-reassign': 0,
'no-bitwise': 0,
'no-loop-func': 0,
'guard-for-in': 0,
'no-return-assign': ['error', 'except-parens'],
'indent': [
'error',
2,
{
ignoredNodes: ['TemplateLiteral > *'],
SwitchCase: 1
},
],
},
settings: {
'import/resolver': {
node: {
moduleDirectory: [
'node_modules',
resolve(__dirname, 'src'),
]
},
webpack: {
config: resolve(__dirname, 'config/webpack.config.js'),
}
}
}
};