Files
2026-12-01 12:12:13 +02:00

39 lines
1.2 KiB
JSON

{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import"],
"options": {
"typeAware": true
},
"rules": {
"no-case-declarations": "error",
"no-fallthrough": "error",
"no-regex-spaces": "error",
"no-shadow": "warn",
"no-var": "error",
"prefer-const": "error",
"typescript/ban-ts-comment": [
"error",
{ "ts-expect-error": false, "ts-ignore": "allow-with-description" }
],
"typescript/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
],
"typescript/method-signature-style": ["error", "property"],
"typescript/no-inferrable-types": ["error", { "ignoreParameters": true }],
"typescript/no-namespace": "error",
"typescript/no-unnecessary-condition": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/prefer-for-of": "warn",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-commonjs": "error",
"import/no-duplicates": "error",
"unicorn/prefer-node-protocol": "error"
}
}