Files
hedgedoc/backend/.oxlintrc.json
Erik Michelson 527e06dfa7 fix(lint): avoid incompatible TypeScript rule
strictNullChecks: true does not work with jest.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-05-09 13:05:59 +02:00

46 lines
1.1 KiB
JSON

{
"$schema": "../node_modules/oxlint/configuration_schema.json",
"jsPlugins": ["./oxlint-local-rules.js"],
"plugins": [
"typescript",
"jest",
"oxc"
],
"rules": {
"no-debugger": "warn",
"hedgedoc-local/correct-logger-context": "error",
"typescript/no-unused-vars": ["warn", { "argsIgnorePattern": "^_+$" }],
"typescript/return-await": ["error", "always"],
"typescript/no-base-to-string": "error"
},
"overrides": [
{
"files": ["test/**", "src/**/*.spec.ts"],
"rules": {
"typescript/unbound-method": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/require-await": "off",
"typescript/explicit-function-return-type": "off",
"typescript/no-useless-default-assignment": "off",
"jest/no-standalone-expect": "off"
}
},
{
"files": ["src/database/**"],
"rules": {
}
}
],
"env": {
"node": true,
"jest": true
},
"options": {
"typeAware": true,
"typeCheck": true,
"maxWarnings": 0
}
}