`scripts` sat in oxlint's ignorePatterns since c94c30e, grouped with
dist, coverage and .pnpm-store. Those are build artifacts; scripts holds
the quality gates themselves, which went unlinted as a result.
Removing it raises coverage from 265 to 273 files and surfaced four
findings:
prefer-regexp-exec in three files — swapped String#match for RegExp#exec.
All three patterns are non-global, where the two methods return the same
result, so behaviour is unchanged.
require-array-sort-compare in generate-bestiary-index.mjs — the rule
skips string arrays, and fired only because `new Set()` infers Set<any>.
Typed it Set<string>, which it already is, rather than adding a
comparator the bare sort does not need.
Also anchors the lint-gate probe's no-console canary to CLI scripts that
exist to write to the console, rather than to app error paths that could
reasonably be removed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
722 B
JSON
28 lines
722 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/tc39-proposal-type-annotations/refs/heads/main/packages/oxlint/configuration_file_schema.json",
|
|
"plugins": ["typescript", "unicorn", "jest", "import"],
|
|
"categories": {},
|
|
"rules": {
|
|
"typescript/no-unnecessary-type-assertion": "error",
|
|
"typescript/no-deprecated": "warn",
|
|
"typescript/prefer-regexp-exec": "error",
|
|
"unicorn/prefer-string-replace-all": "error",
|
|
"unicorn/prefer-string-raw": "error",
|
|
"import/no-cycle": "error",
|
|
"jest/expect-expect": [
|
|
"error",
|
|
{
|
|
"assertFunctionNames": ["expect", "expectDomainError"]
|
|
}
|
|
]
|
|
},
|
|
"ignorePatterns": [
|
|
"dist",
|
|
"coverage",
|
|
".claude",
|
|
".specify",
|
|
"specs",
|
|
".pnpm-store"
|
|
]
|
|
}
|