2023-05-15 08:51:32 +08:00
|
|
|
{
|
|
|
|
"extends": [
|
2023-08-24 11:46:59 +08:00
|
|
|
"next",
|
|
|
|
"@antfu"
|
2023-05-15 08:51:32 +08:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/consistent-type-definitions": [
|
|
|
|
"error",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"no-console": "off",
|
|
|
|
"indent": "off",
|
|
|
|
"@typescript-eslint/indent": [
|
|
|
|
"error",
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1,
|
|
|
|
"flatTernaryExpressions": false,
|
|
|
|
"ignoredNodes": [
|
|
|
|
"PropertyDefinition[decorators]",
|
|
|
|
"TSUnionType",
|
|
|
|
"FunctionExpression[params]:has(Identifier[decorators])"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2023-05-29 17:49:01 +08:00
|
|
|
"react-hooks/exhaustive-deps": "warn"
|
2023-05-15 08:51:32 +08:00
|
|
|
}
|
2023-05-29 17:49:01 +08:00
|
|
|
}
|