feat: add oxlint with correctness defaults (#22682)

This commit is contained in:
Kit Langton
2026-04-15 20:45:19 -04:00
committed by GitHub
parent a554fad232
commit 3d6f90cb53
57 changed files with 165 additions and 122 deletions

View File

@@ -176,7 +176,7 @@ function dynamic(text: string, ps: boolean) {
}
function prefix(text: string) {
const match = /[?*\[]/.exec(text)
const match = /[?*[]/.exec(text)
if (!match) return text
if (match.index === 0) return
return text.slice(0, match.index)