-
Notifications
You must be signed in to change notification settings - Fork 97
/
.eslintrc
44 lines (44 loc) · 1.14 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react/jsx-runtime", "prettier"],
"env": {
"browser": true,
"es2020": true,
"jest": true,
"mocha": true,
"node": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"presets": ["@babel/preset-react"]
},
"ecmaVersion": "latest",
"requireConfigFile": false,
"sourceType": "module"
},
"rules": {
"no-else-return": 2,
"no-extend-native": 2,
"no-eval": 2,
"no-iterator": 2,
"no-proto": 2,
"no-useless-constructor": 2,
"no-useless-escape": 0,
"no-useless-rename": 2,
"no-var": 2,
"prefer-destructuring": 2,
"prefer-const": 2,
"prefer-rest-params": 2,
"prefer-template": 2,
"react/prop-types": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"rest-spread-spacing": 2,
"semi": [2, "always"]
},
"settings": {
"react": {
"version": "detect"
}
}
}