-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
34 lines (34 loc) · 1020 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard-with-typescript",
"prettier"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"] // Specify it only for TypeScript files
},
"plugins": ["react"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/restrict-template-expressions": "off",
"react/react-in-jsx-scope": "off",
"quotes": [2, "single"],
"comma-dangle": ["error", "never"],
"semi": [2, "never"],
"@typescript-eslint/strict-boolean-expressions": 0
},
"settings": {
"react": {
"version": "detect" // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// It will default to "latest" and warn if missing, and to "detect" in the future
}
}
}