Files
ragflow/web/.oxlintrc.json

42 lines
1.1 KiB
JSON

{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"plugins": ["typescript", "react"],
"settings": {
"react": {
"version": "18.2.0"
}
},
"rules": {
"typescript/no-use-before-define": [
"warn",
{
"functions": false,
"variables": true
}
],
"typescript/no-explicit-any": "off",
"typescript/ban-ts-comment": "off",
"typescript/no-empty-function": "off",
"typescript/no-non-null-assertion": "off",
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-unused-vars": ["warn", { "fix": { "imports": "safe-fix" } }],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "@/utils/backend-runtime",
"message": "Branch on the backend only through the dispatch primitives in @/utils/backend-variant (useIsGoBackend / <BackendVariant> / pickByBackend). backend-runtime may only be imported by backend-variant itself and the main.tsx bootstrap gate."
}
]
}
]
}
}