-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
42 lines (42 loc) · 1009 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
33
34
35
36
37
38
39
40
41
42
module.exports = {
env: {
node: 1,
browser: 1,
es6: 1,
},
parser: 'babel-eslint',
plugins: ['react', 'flowtype', 'react-hooks', 'jsx-a11y'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:flowtype/recommended',
'plugin:jsx-a11y/recommended',
],
rules: {
'no-console': [
'error',
{
allow: ['warn', 'error', 'info'],
},
],
'react/prop-types': 'off',
'react/display-name': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'flowtype/space-after-type-colon': 'off',
'flowtype/generic-spacing': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
},
overrides: [
{
files: ['{src,tests}/**/*.ts*'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
},
],
};