sozsoft-platform/ui/.oxlintrc.json

45 lines
1.3 KiB
JSON
Raw Normal View History

2026-10-16 21:13:31 +00:00
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "import", "oxc"],
"categories": {
"correctness": "error"
},
"env": {
"browser": true,
"es2024": true
},
"settings": {
"react": { "version": "19" }
},
"rules": {
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"react/only-export-components": ["warn", { "allowConstantExport": true }],
"react/react-in-jsx-scope": "off",
"react/set-state-in-effect": "off",
"react/refs": "off",
"react/immutability": "off",
"react/static-components": "off",
"react/preserve-manual-memoization": "off",
"react/purity": "off",
"react/use-memo": "off",
"react/no-did-update-set-state": "off",
"no-eval": "off",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "error",
"import/default": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"typescript/no-explicit-any": "off",
"no-unused-vars": "off"
},
"overrides": [
{
"files": ["vite.config.ts", "twSafelistGenerator.ts"],
"env": { "browser": false, "node": true }
}
],
"ignorePatterns": ["dist/**", "dev-dist/**", "public/**", "env.d.ts"]
}