-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
98 lines (98 loc) · 3.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
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
module.exports = {
"parser": "babel-eslint",
settings: {
'import/resolver': {
webpack: {
config: './config/webpack.common.js'
}
}
},
'extends': 'airbnb',
'plugins': [
'babel'
],
'rules': {
'array-callback-return': ['off'],
'arrow-body-style': ['off'],
'arrow-parens': ['off'],
'babel/quotes': ['error', 'single'],
'camelcase': ['off'],
'comma-dangle': ['off'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'consistent-return': ['off'],
'default-case': 'off',
'dot-notation': 'off',
'eol-last': ['off'],
'eqeqeq': 'off',
'func-names': ['off'],
'guard-for-in': 'off',
'global-require': ['off'],
'import/prefer-default-export': ['off'],
'import/no-extraneous-dependencies': 'off',
'class-methods-use-this': ['off'],
'indent': ['error', 4, { 'MemberExpression': 0, 'ignoreComments': true }],
'import/first': 'off',
'import/no-named-as-default': 'off',
'import/no-named-default': 'off',
'jsx-a11y/anchor-has-content': ['off'],
'jsx-a11y/img-has-alt': ['off'],
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'keyword-spacing': ['error', { 'after': true }],
'linebreak-style': ['off'],
'max-len': 'off',
'new-cap': 'off',
'no-alert': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-class-assign': 'off',
'no-confusing-arrow': 'off',
'no-constant-condition': 'off',
'no-case-declarations': 'off',
'no-else-return': 'off',
'no-floating-decimal': 'off',
'no-nested-ternary': 'off',
'no-path-concat': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-self-compare': 'off',
'no-shadow': 'off',
'no-undef': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
'no-unreachable': 'off',
'no-unneeded-ternary': 'off',
'no-useless-escape': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'no-throw-literal': 'off',
'no-trailing-spaces': 'off',
'no-var': ['off'],
'object-shorthand': 'off',
'padded-blocks': 'off',
'prefer-arrow-callback': 'off',
'prefer-template': 'off',
'prefer-const': 'off',
'quote-props': 'off',
'react/forbid-prop-types': ['off'],
'react/jsx-filename-extension': ['off'],
'react/jsx-space-before-closing': ['off'],
'react/jsx-indent': ['error', 4, { 'MemberExpression': 0 }],
'react/jsx-indent-props': ['error', 4],
'react/no-danger': ['off'],
'react/no-unescaped-entities': ['off'],
'react/no-did-mount-set-state': ['off'],
'react/sort-comp': ['off'],
'react/self-closing-comp': ['off'],
'react/prefer-stateless-function': 'off',
'react/prop-types': 'off',
'semi': 'off',
'space-before-function-paren': ['off'],
'spaced-comment': ['off'],
'space-in-parens': ['off'],
'vars-on-top': ['off'],
'wrap-iife': ['off']
}
};