dify/web/.eslintrc.json

32 lines
684 B
JSON
Raw Normal View History

2023-05-15 08:51:32 +08:00
{
"extends": [
2023-08-24 11:46:59 +08:00
"next",
2024-10-16 10:18:48 +08:00
"@antfu",
"plugin:storybook/recommended"
2023-05-15 08:51:32 +08:00
],
"rules": {
"@typescript-eslint/consistent-type-definitions": [
"error",
"type"
],
2024-02-23 14:31:06 +08:00
"@typescript-eslint/no-var-requires": "off",
2023-05-15 08:51:32 +08:00
"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"
2023-05-15 08:51:32 +08:00
}
}