-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
34 lines (34 loc) · 961 Bytes
/
.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
{
"parser": "babel-eslint", // Specifies the ESLint parser
"parserOptions": {
"ecmaVersion": 2018, // specify the version of ECMAScript syntax you want to use: 2015 => (ES6)
"sourceType": "module", // Allows for the use of imports
"ecmaFeatures": {
"jsx": true, // enable JSX
"impliedStrict": true // enable global strict mode
}
},
"extends": ["react-app", "plugin:prettier/recommended"],
"plugins": ["prettier", "react", "react-hooks"],
"env": {
"node": true,
"browser": true // enable all browser global variables
},
"rules": {
"strict": "error",
"no-sequences": "error",
"no-mixed-operators": "error",
"react/react-in-jsx-scope": "error",
"no-useless-escape": "error",
"max-len": [
"error",
{
"code": 100
}
],
"react/prop-types": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {}
}