-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.js
59 lines (55 loc) · 1.12 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
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['prettier'],
env: {
browser: true,
jest: true,
node: true,
},
globals: {},
rules: {
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/label-has-for': [
2,
{
allowChildren: true,
},
],
'jsx-a11y/anchor-is-valid': [
'error',
{
components: ['Link'],
specialLink: ['to'],
},
],
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
'error',
{
img: ['button'],
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/__tests__/*',
'**/test-utils/*',
'**/test-utils.js',
'**/*.stories.*',
],
},
],
'import/no-named-as-default': 'off',
'import/prefer-default-export': 'off',
'no-multiple-empty-lines': [
1,
{
max: 1,
},
],
'prettier/prettier': 'error',
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': 'off',
},
};