configuration-oxlint/rules/oxc.ts
gcch 7e91de4cb2 2026-04-03
- eslint OK
- import OK
- jsdoc OK
- node OK
- oxc OK
- promise OK
2026-04-04 23:45:42 +02:00

35 lines
1.3 KiB
TypeScript

import type { DummyRuleMap } from "oxlint";
const oxcRules: DummyRuleMap = {
"oxc/approx-constant": "deny",
"oxc/bad-array-method-on-arguments": "deny",
"oxc/bad-bitwise-operator": "deny",
"oxc/bad-char-at-comparison": "deny",
"oxc/bad-comparison-sequence": "deny",
"oxc/bad-min-max-func": "deny",
"oxc/bad-object-literal-comparison": "deny",
"oxc/bad-replace-all-arg": "deny",
"oxc/branches-sharing-code": "warn",
"oxc/const-comparisons": "deny",
"oxc/double-comparisons": "deny",
"oxc/erasing-op": "deny",
"oxc/misrefactored-assign-op": "deny",
"oxc/missing-throw": "deny",
"oxc/no-accumulating-spread": "deny",
// This rule should generally not be used in modern JavaScript/TypeScript codebases without good reason.
"oxc/no-async-await": "allow",
"oxc/no-async-endpoint-handlers": "allow",
"oxc/no-barrel-file": ["deny", { threshold: 100 }],
"oxc/no-const-enum": "deny",
"oxc/no-map-spread": "allow",
// In most codebases at this point, you should not use this rule.
"oxc/no-optional-chaining": "allow",
// In most codebases at this point, you should not use this rule.
"oxc/no-rest-spread-properties": "allow",
"oxc/no-this-in-exported-function": "deny",
"oxc/number-arg-out-of-range": "deny",
"oxc/only-used-in-recursion": "deny",
"oxc/uninvoked-array-callback": "deny",
};
export default oxcRules;