-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
26 lines (26 loc) · 1.2 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
{
"extends": "next/core-web-vitals",
"plugins": ["unused-imports", "import-quotes"],
"rules": {
"indent": ["error", 4, { "SwitchCase": 1, "ignoredNodes": ["ConditionalExpression"] }],
"comma-spacing": ["error", { "before": false, "after": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"spaced-comment": ["error", "always", { "block": { "exceptions": ["*"] } }],
// "camelcase": ["error", { "ignoreDestructuring": true }],
"react-hooks/exhaustive-deps": "off",
"no-unused-vars": "off",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"unused-imports/no-unused-imports": "error",
"semi": ["error", "never"],
"padded-blocks": ["error", "never"],
"import-quotes/import-quotes": [1, "single"],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single"],
"no-var": "error",
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-in-parens": ["error", "never"],
"space-before-blocks": ["error", "always"],
"object-curly-spacing": ["error", "always"],
"react/jsx-indent-props": ["error", "first"]
}
}