-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
46 lines (46 loc) · 1.23 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
45
46
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"legacyDecorators": true
},
"sourceType": "module",
"allowImportExportEverywhere": false
},
"extends": ["next", "next/core-web-vitals", "eslint:recommended"],
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["react", "react-hooks"],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-fallthrough": "off",
"no-useless-catch": "off",
"no-empty-function": "off",
"no-useless-escape": "off",
"ban-types": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-no-useless-fragment": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks order
"react-hooks/exhaustive-deps": "off", // Checks effect dependencies
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@next/next/no-img-element": "off"
},
"globals": {
"React": "writable"
}
}