forked from react-toolbox/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (52 loc) · 1.23 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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6
},
extends: 'airbnb',
env: {
browser: true,
es6: true,
jest: true,
node: true
},
plugins: [
'compat',
'import',
'jest',
'jsx-a11y',
'react'
],
rules: {
'compat/compat': 'error',
'func-names': 'off',
'global-require': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false
}
],
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': [
'error', {
depth: 3,
},
],
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-noninteractive-tabindex': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'no-underscore-dangle': 'off',
'no-use-before-define': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-no-bind': 'error',
'react/no-find-dom-node': 'off',
'react/require-default-props': 'off',
'react/sort-prop-types': 'error'
}
}