-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
43 lines (42 loc) · 916 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
const prettierConfig = require('./prettier.config');
module.exports = {
root: true,
parser: '@babel/eslint-parser',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended'
],
plugins: ['prettier', 'jest', 'react-hooks'],
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
node: true,
es6: true,
jest: true
},
settings: {
react: {
version: 'detect'
}
},
ignorePatterns: ['build', 'coverage'],
rules: {
'prettier/prettier': ['error', prettierConfig],
'global-require': 0,
'linebreak-style': 0,
'no-global-assign': 0,
'no-console': 0,
'no-unused-vars': 1,
'react/prop-types': 0,
'react/display-name': 0,
'react/jsx-no-target-blank': 1,
'react/jsx-uses-react': 0,
'react/react-in-jsx-scope': 0
}
};