-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
111 lines (111 loc) · 4.08 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
108
109
110
111
module.exports = {
'parser': 'babel-eslint',
'extends': 'airbnb',
'rules': {
'array-callback-return': ['off'],
'arrow-body-style': ['off'],
'arrow-parens': ['off'],
'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, { 'SwitchCase': 1 }],
'import/first': 'off',
'import/no-cycle': 'off',
'import/order': 'off',
'jsx-a11y/anchor-has-content': ['off'],
'jsx-a11y/click-events-have-key-events': ['off'],
'jsx-a11y/control-has-associated-label': 'off',
'jsx-a11y/img-has-alt': ['off'],
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'keyword-spacing': ['error', { 'after': true }],
'lines-between-class-members': 'off',
'linebreak-style': 'off',
'max-len': 'off',
'new-cap': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-class-assign': 'off',
'no-constant-condition': 'off',
'no-case-declarations': 'off',
'no-else-return': 'off',
'no-floating-decimal': 'off',
'no-multi-assign': 'off',
'no-mixed-operators': 'off',
'no-nested-ternary': 'off',
'no-path-concat': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-globals': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-self-compare': 'off',
'no-shadow': 'off',
'no-undef': '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',
'object-curly-newline': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'prefer-arrow-callback': 'off',
'prefer-template': 'off',
'prefer-const': 'off',
'prefer-destructuring': 'off',
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }],
'quote-props': 'off',
'react/forbid-prop-types': ['off'],
'react/destructuring-assignment': ['off'],
'react/jsx-curly-brace-presence': ['off'],
'react/jsx-curly-newline': ['off'],
'react/jsx-filename-extension': ['off'],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'react/jsx-props-no-spreading': ['off'],
'react/jsx-space-before-closing': ['off'],
'react/jsx-tag-spacing': ['off'],
'react/jsx-wrap-multilines': ['off'],
'react/no-access-state-in-setstate': ['off'],
'react/no-array-index-key': ['off'],
'react/no-danger': ['off'],
'react/no-did-update-set-state': ['off'],
'react/no-unescaped-entities': ['off'],
"react/no-unknown-property": ['off'],
'react/no-did-mount-set-state': ['off'],
'react/prop-types': 'off',
'react/prefer-stateless-function': 'off',
'react/self-closing-comp': ['off'],
'react/state-in-constructor': ['off'],
'semi': 'off',
'space-before-function-paren': ['off'],
'spaced-comment': ['off'],
'space-in-parens': ['off'],
'vars-on-top': ['off'],
'wrap-iife': ['off'],
},
'overrides': [{
'files': ['./src/tests/e2e/*.js'],
'rules': {
'no-unused-expressions': 'off'
}
}]
}