2026-04-03
- eslint OK - import OK - jsdoc OK - node OK - oxc OK - promise OK
This commit is contained in:
parent
93dd909919
commit
bb90d0e246
15 changed files with 881 additions and 377 deletions
35
rules/oxc.ts
Normal file
35
rules/oxc.ts
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue