chore: enable additional oxlint rules

This commit is contained in:
Peter Steinberger
2026-04-23 05:30:32 +01:00
parent 0b0662b1c9
commit fdf97a8784
2 changed files with 55 additions and 1 deletions

View File

@@ -21,9 +21,15 @@ const ZERO_BASELINE_RULES = [
"eslint/no-regex-spaces",
"eslint/no-sequences",
"eslint/no-self-compare",
"eslint/no-var",
"eslint/no-new-wrappers",
"eslint/no-else-return",
"eslint/no-case-declarations",
"eslint/prefer-exponentiation-operator",
"eslint/prefer-numeric-literals",
"eslint/radix",
"eslint/unicode-bom",
"eslint/yoda",
"import/no-absolute-path",
"import/no-empty-named-blocks",
"import/no-self-import",
@@ -34,18 +40,39 @@ const ZERO_BASELINE_RULES = [
"typescript/no-non-null-asserted-nullish-coalescing",
"typescript/no-unnecessary-qualifier",
"typescript/prefer-find",
"typescript/prefer-function-type",
"typescript/prefer-includes",
"typescript/prefer-reduce-type-parameter",
"typescript/prefer-return-this-type",
"unicorn/consistent-date-clone",
"unicorn/consistent-empty-array-spread",
"unicorn/consistent-template-literal-escape",
"unicorn/no-console-spaces",
"unicorn/no-length-as-slice-end",
"unicorn/no-instanceof-array",
"unicorn/no-negation-in-equality-check",
"unicorn/no-new-buffer",
"unicorn/no-typeof-undefined",
"unicorn/no-useless-error-capture-stack-trace",
"unicorn/prefer-array-some",
"unicorn/prefer-dom-node-text-content",
"unicorn/prefer-keyboard-event-key",
"unicorn/prefer-math-min-max",
"unicorn/prefer-negative-index",
"unicorn/prefer-node-protocol",
"unicorn/prefer-number-properties",
"unicorn/prefer-optional-catch-binding",
"unicorn/prefer-prototype-methods",
"unicorn/prefer-regexp-test",
"unicorn/prefer-string-slice",
"unicorn/require-array-join-separator",
"unicorn/require-number-to-fixed-digits-argument",
"unicorn/throw-new-error",
"vitest/no-import-node-test",
"vitest/consistent-vitest-vi",
"vitest/prefer-called-once",
"vitest/prefer-called-times",
"vitest/prefer-expect-type-of",
];
function readJson(path: string): unknown {