diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7f0ea6b..b82d4e3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -24,6 +24,8 @@ jobs: require-lockfile: true - name: Build Package run: pnpm build + - name: Run Tests + run: pnpm test - name: Check Types run: pnpm typecheck - name: Build Docs diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 6a34021..3ecf003 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,6 +18,8 @@ jobs: require-lockfile: true - name: Build Package run: pnpm build + - name: Run Tests + run: pnpm test - name: Check Types run: pnpm typecheck - name: Build Docs diff --git a/package.json b/package.json index 107a9fb..aad2507 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "peerDependencies": { "oxfmt": ">=0.73.0 <1", - "oxlint": "^1.83.0" + "oxlint": "^1.88.0" }, "peerDependenciesMeta": { "oxfmt": { diff --git a/src/oxlint/README.md b/src/oxlint/README.md index 9cd6bf4..48f0a67 100644 --- a/src/oxlint/README.md +++ b/src/oxlint/README.md @@ -2033,6 +2033,12 @@ These settings apply only to test files when `vitest` is set to `true` (default) #### [🛑 unicorn/prefer-query-selector](https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-query-selector) +##### Settings + +```json +{ "allowWithVariables": false } +``` + #### [🛑 unicorn/prefer-regexp-test](https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test) #### [🛑 unicorn/prefer-single-call](https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-single-call) diff --git a/src/oxlint/rules/unicorn.ts b/src/oxlint/rules/unicorn.ts index c036d07..90a9c57 100644 --- a/src/oxlint/rules/unicorn.ts +++ b/src/oxlint/rules/unicorn.ts @@ -282,7 +282,7 @@ const unicorn: OxlintRuleGroup = { settings: "error", }, "unicorn/prefer-query-selector": { - settings: "error", + settings: ["error", { allowWithVariables: false }], }, "unicorn/prefer-regexp-test": { settings: "error",