-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.json
26 lines (26 loc) · 848 Bytes
/
.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", "plugin:mdx/recommended"],
"rules": {
"prefer-const": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-template": "error",
"no-useless-concat": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-else-return": "error",
"no-empty-function": "error",
"no-empty-pattern": "error",
"no-lone-blocks": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-useless-return": "error",
"no-whitespace-before-property": "error",
"object-shorthand": ["error", "always"],
"no-unsafe-optional-chaining": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }]
},
"settings": {
"mdx/code-blocks": true
}
}