-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
71 lines (71 loc) · 1.6 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
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true,
},
'extends': [
"airbnb",
"prettier",
"prettier/react",
"poi-plugin",
],
'parser': 'babel-eslint',
'plugins': [
'import',
'react',
'prettier',
],
'globals': {
"window": false,
"config": false,
},
'rules': {
'import/no-unresolved': [2, { 'ignore': ['views/.*'] }],
'react/jsx-filename-extension': 'off',
'no-underscore-dangle': ['error', { 'allow': ['__'], 'allowAfterThis': true }],
'import/extensions': ['error', { 'es': 'never' }],
'import/no-extraneous-dependencies': 'off',
'camelcase': 'off',
'no-confusing-arrow': 'off',
'react/require-default-props': 'off',
'no-console': ['error', {allow: ['warn', 'error']}],
'function-paren-newline': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/no-multi-comp': 'off',
'react/forbid-prop-types': 'off',
'no-underscore-dangle': 'off',
"prettier/prettier": "error",
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx', '.es'],
'paths': [__dirname],
},
},
'import/core-modules': [
'electron',
'react',
'react-dom',
'react-redux',
'redux',
'redux-observers',
'reselect',
'react-bootstrap',
'react-fontawesome',
'path-extra',
'fs-extra',
'lodash',
'cson',
'fast-memoize',
'classnames',
'i18n-2',
'semver',
'react-virtualized',
'prop-types',
'fuse.js',
'react-overlays',
],
},
}