-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"extends": ["next/core-web-vitals", "prettier", "eslint:recommended"],
"ignorePatterns": ["**/*.d.ts"],
"env": { "es6": true },
"rules": {
"semi": 2,
"curly": 2,
"no-var": 2,
"no-unused-vars": "error",
"eqeqeq": 2,
"eol-last": ["error", "always"],
"key-spacing": 2,
"require-await": 2,
"spaced-comment": 2,
"space-infix-ops": 2,
"no-return-await": 2,
"no-await-in-loop": 2,
"space-before-blocks": 2,
"newline-before-return": 2,
// "linebreak-style": ["error", "windows"],
"object-curly-spacing": [2, "always"],
"camelcase": [2, { "properties": "never" }],
"quotes": [2, "single", { "allowTemplateLiterals": true }],
"no-console": "warn",
"no-useless-escape": "off",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "next",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react", "next"],
"groups": ["builtin", "external", "internal", "object", "parent", "sibling", "type", "index"]
}
],
// "import/no-unresolved": [
// "error",
// {
// "commonjs": true,
// "amd": true
// }
// ],
"import/named": "error",
"import/namespace": "warn",
"import/default": "warn",
"import/export": "warn"
},
"settings": {
"react": {
"version": "detect"
}
// "import/resolver": {
// "node": {
// "extensions": [".js", ".jsx", ".ts", ".tsx"],
// "moduleDirectory": ["node_modules", "src/"],
// "paths": ["."]
// }
// }
}
}