-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1 KB
/
.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
38
39
40
41
42
module.exports = {
extends: ["next", "prettier", "next/core-web-vitals"],
plugins: ["react", "react-hooks", "prettier"],
rules: {
quotes: ["error", "double"],
semi: ["error", "always"],
"no-unused-vars": [
"error",
{
args: "after-used",
caughtErrors: "none",
ignoreRestSiblings: true,
vars: "all",
},
],
"prefer-const": "error",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react/prop-types": "error",
"react/jsx-no-undef": "error",
"react/jsx-fragments": "error",
"react/jsx-uses-react": "error",
"prefer-const": "error",
"no-unused-vars": [
"error",
{
args: "after-used",
caughtErrors: "none",
ignoreRestSiblings: true,
vars: "all",
},
],
"react/self-closing-comp": "error",
"no-console": "error",
},
ignorePatterns: ["node_modules/", ".next/"],
settings: {
react: {
version: "detect",
},
},
};