-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
32 lines (32 loc) · 844 Bytes
/
.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
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
jest: true,
webextensions: true,
},
plugins: ['flowtype', 'react-hooks'],
extends: ['airbnb', 'plugin:flowtype/recommended'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
'react/require-default-props': 0,
'react/jsx-props-no-spreading': 0,
'import/prefer-default-export': 0,
'jsx-a11y/anchor-is-valid': ['error', {
components: ['Link'],
specialLink: ['to'],
aspects: ['noHref', 'invalidHref', 'preferButton'],
}],
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
},
},
},
};