-
Notifications
You must be signed in to change notification settings - Fork 114
/
.eslintrc.js
37 lines (37 loc) · 941 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
// eslint-disable-next-line no-undef
module.exports = {
settings: {
react: {
version: "detect",
},
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
babelOptions: {
presets: ["@babel/preset-react"]
},
},
plugins: ['react'],
env: {
es6: true,
browser: true,
},
rules: {
'no-console': 0, // Disable console error
'no-undef': 0, // Disable no-undef error
'react-hooks/exhaustive-deps': 0,
'no-unused-vars': 0,
'react/jsx-key':0,
'no-useless-escape' :0,
'react/prop-types':0,
'react/no-unescaped-entities':0,
'react/no-unknown-property':0,
}
}