-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
87 lines (87 loc) · 2.3 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
module.exports = {
'extends': 'airbnb',
'plugins': [
'jsx-a11y',
'import'
],
'env': {
'browser': true,
'es6': true,
'node': true,
'mocha': true,
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
'parser': 'babel-eslint',
'rules': {
'semi': ['error', 'never'],
'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',
'no-underscore-dangle': 'off',
'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',
'arrow-parens': ['error', 'as-needed'],
'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'
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx', '.es'],
'paths': [__dirname],
},
},
'import/core-modules': [
'bluebird',
'electron',
'path-extra',
'fs-extra',
'lodash',
'semver'
],
},
}