1
0
mirror of https://gitee.com/dify_ai/dify.git synced 2024-12-12 12:25:09 +08:00
dify/web/.eslintrc.json
2024-02-23 14:31:06 +08:00

31 lines
648 B
JSON

{
"extends": [
"next",
"@antfu"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": [
"error",
"type"
],
"@typescript-eslint/no-var-requires": "off",
"no-console": "off",
"indent": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1,
"flatTernaryExpressions": false,
"ignoredNodes": [
"PropertyDefinition[decorators]",
"TSUnionType",
"FunctionExpression[params]:has(Identifier[decorators])"
]
}
],
"react-hooks/exhaustive-deps": "warn",
"react/display-name": "warn"
}
}