forked from mParticle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (56 loc) · 1.97 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
globals: {
cy: true,
describe: true,
beforeEach: true,
it: true,
},
extends: [
'airbnb',
'eslint:recommended',
'prettier',
'plugin:react/recommended',
],
plugins: ['prettier', 'react', 'jsx-a11y', 'import'],
rules: {
'arrow-parens': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'import/prefer-default-export': 0,
indent: ['error', 4],
'jsx-quotes': ['error', 'prefer-single'],
'linebreak-style': ['error', 'unix'],
'no-param-reassign': ['error', { props: false }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-undef': ['warn'],
quotes: ['error', 'single'],
'react/button-has-type': ['warn'],
'react/default-props-match-prop-types': ['warn'],
'react/display-name': ['warn'],
'react/jsx-closing-bracket-location': [
1,
{ selfClosing: 'line-aligned', nonEmpty: 'after-props' },
],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'react/destructuring-assignment': ['off'],
'react/forbid-prop-types': ['off'],
'react/no-access-state-in-setstate': ['off'],
'react/no-deprecated': ['warn'],
'react/no-unused-state': ['warn'],
'react/require-default-props': ['warn'],
'react/prop-types': ['warn'],
'jsx-a11y/label-has-associated-control': ['off'],
'jsx-a11y/label-has-associated-label': ['off'],
'jsx-a11y/click-events-have-key-events': ['warn'],
'jsx-a11y/control-has-associated-label': ['warn'],
'jsx-a11y/interactive-supports-focus': ['warn'],
'jsx-a11y/no-noninteractive-element-interactions': ['warn'],
'jsx-a11y/anchor-is-valid': ['warn'],
'prefer-destructuring': ['warn'],
},
};