-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
107 lines (107 loc) · 2.96 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
module.exports = {
'extends': 'airbnb',
'plugins': [
'react',
'jsx-a11y',
'import'
],
'env': {
'browser': true,
'es6': true,
'node': true,
'mocha': true,
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
'parser': 'babel-eslint',
'rules': {
'semi': ['error', 'never'],
'import/no-unresolved': [2, { 'ignore': ['views/.*', 'reselect', 'react-*', 'prop-types'] }],
'react/jsx-filename-extension': 'off',
'react/jsx-max-props-per-line': 'off',
'no-restricted-syntax': ["error", {
'selector': 'ExportDefaultDeclaration',
'message': 'Always use named exports'
}],
'no-lonely-if': 'off',
'no-floating-decimal': 'off',
'indent': ['error',2 , {'flatTernaryExpressions': true}],
'no-underscore-dangle': ['error', { 'allowAfterThis': true }],
'import/extensions': ['error', { 'es': 'never' }],
'import/no-extraneous-dependencies': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-confusing-arrow': ['error', {'allowParens': true}],
'import/prefer-default-export': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/media-has-caption': 'off',
'arrow-parens': ['error', 'as-needed'],
'no-underscore-dangle': ['error', { 'allow': ['__','__r','__n'] }],
'no-console': ['error', { 'allow': ['warn', 'error', 'info'] }],
'no-continue': 'off',
'space-in-parens': 'off',
'object-curly-spacing': 'off',
'react/jsx-curly-spacing': 'off',
'react/jsx-first-prop-new-line': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-indent-props': 'off',
'space-unary-ops': 'off',
'object-property-newline': 'off',
'space-infix-ops': 'off',
'curly': 'off',
'quotes': 'off',
'comma-spacing': 'off',
'array-callback-return': 'off',
'no-nested-ternary': 'off',
'no-confusing-arrow': 'off',
'no-unused-vars':
[ 'error',
{
'vars': 'all',
'varsIgnorePattern': '^_[a-zA-Z].*',
'args': 'all',
'argsIgnorePattern': '^_[a-zA-Z].*'
}
],
'no-else-return': 'off',
'react/forbid-prop-types': 'off',
'react/prefer-stateless-function': 'off',
'react/jsx-boolean-value': 'off',
'no-mixed-operators': 'off',
'consistent-return': 'off',
'no-plusplus': 'off',
'function-paren-newline': 'off',
'object-curly-newline': 'off',
'jsx-a11y/click-events-have-key-events': 'off'
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx', '.es'],
'paths': [__dirname],
},
},
'import/core-modules': [
'bluebird',
'electron',
'react',
'react-redux',
'redux-observers',
'reselect',
'react-fontawesome',
'path-extra',
'fs-extra',
'lodash',
'cson',
'react-dom',
'redux',
'semver',
'i18n-2',
'wanakana',
'@blueprintjs/core',
'styled-components'
],
},
}