forked from commercelayer/commercelayer-sanity-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
28 lines (28 loc) · 960 Bytes
/
.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
{
"extends": ["next", "next/core-web-vitals", "eslint:recommended", "prettier"],
"rules": {
"no-console": ["warn", { "allow": ["warn", "error"] }],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "double", "avoid-escape"],
"dot-location": ["error", "property"],
"no-multi-spaces": "error",
"array-bracket-spacing": ["error", "never"],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"space-in-parens": ["error", "never"],
"array-element-newline": ["error", "consistent"],
"object-curly-spacing": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "never"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"no-trailing-spaces": "error",
"no-unused-vars": "off"
}
}