-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
52 lines (52 loc) · 955 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
43
44
45
46
47
48
49
50
51
52
module.exports = {
parser: '@babel/eslint-parser',
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
globals: {
__CLIENT__: false,
__SERVER__: false,
__DEV__: false,
__PROD__: false,
__TEST__: false,
},
plugins: [],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
parserOptions: {
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
presets: [['@babel/preset-react']],
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': [
2,
{
singleQuote: true,
semi: false,
},
],
'react/prop-types': 0,
},
overrides: [
{
files: ['**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
},
],
}