-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
48 lines (48 loc) · 1.3 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"extends": [
// "eslint:recommended", // uncomment if not using next
"plugin:react/recommended",
"next/core-web-vitals",
"plugin:prettier/recommended" // prettier goes last so it can override other configs
],
"plugins": [
"react",
"react-hooks",
"react-refresh",
"import",
"prettier"
],
"rules": {
"eqeqeq": "error", // require === and !==
"no-console": "warn",
"no-restricted-globals": ["warn", "setTimeout"],
"prettier/prettier": "error",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"curly": ["error", "all"],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"ignorePatterns": ["node_modules", "build", "dist", "public", ".next"]
}