mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 09:40:13 +00:00
fix: restore recommended Oxlint coverage
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
+62
-1
@@ -9,15 +9,76 @@
|
|||||||
"ignorePatterns": ["dist"],
|
"ignorePatterns": ["dist"],
|
||||||
"plugins": ["eslint", "typescript", "react"],
|
"plugins": ["eslint", "typescript", "react"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"no-case-declarations": "error",
|
||||||
|
"no-empty": "error",
|
||||||
|
"no-fallthrough": "error",
|
||||||
|
"no-prototype-builtins": "error",
|
||||||
|
"no-regex-spaces": "error",
|
||||||
|
"no-unexpected-multiline": "error",
|
||||||
|
"no-useless-assignment": "error",
|
||||||
|
"preserve-caught-error": "error",
|
||||||
|
"no-array-constructor": "error",
|
||||||
|
"no-var": "error",
|
||||||
|
"prefer-const": "error",
|
||||||
|
"prefer-rest-params": "error",
|
||||||
|
"prefer-spread": "error",
|
||||||
|
"typescript/ban-ts-comment": "error",
|
||||||
|
"typescript/no-empty-object-type": "error",
|
||||||
|
"typescript/no-namespace": "error",
|
||||||
|
"typescript/no-require-imports": "error",
|
||||||
|
"typescript/no-unnecessary-type-constraint": "error",
|
||||||
|
"typescript/no-unsafe-function-type": "error",
|
||||||
"react/rules-of-hooks": "error",
|
"react/rules-of-hooks": "error",
|
||||||
"react/exhaustive-deps": "warn",
|
"react/exhaustive-deps": "warn",
|
||||||
"typescript/no-explicit-any": "off",
|
"typescript/no-explicit-any": "off",
|
||||||
"react/only-export-components": "off"
|
"react/only-export-components": "off",
|
||||||
|
// React Compiler lint stays opt-in until the compiler is adopted.
|
||||||
|
"react/react-compiler": "off"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"vite.config.ts",
|
||||||
|
"vitest.config.ts",
|
||||||
|
"playwright.config.ts",
|
||||||
|
"postcss.config.js",
|
||||||
|
"tailwind.config.js"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"browser": false,
|
||||||
|
"node": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["src/test/**/*.{ts,tsx}"],
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"node": true,
|
||||||
|
"vitest": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["tests/e2e/**/*.ts"],
|
||||||
|
"env": {
|
||||||
|
"browser": false,
|
||||||
|
"node": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"src/components/server-config.tsx",
|
||||||
|
"src/components/server-config-batch.tsx",
|
||||||
|
"src/routes/server.tsx"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
// Existing migration debt remains visible without blocking lint.
|
||||||
|
"no-useless-assignment": "warn"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"files": ["tests/e2e/fixtures.ts"],
|
"files": ["tests/e2e/fixtures.ts"],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
// Playwright fixture callbacks are not React hooks.
|
||||||
"react/rules-of-hooks": "off"
|
"react/rules-of-hooks": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user