Skip to content

Releases: timmo001/oxlint-rules

0.6.3

Choose a tag to compare

@timmo001 timmo001 released this 15 Oct 15:04
7743353

What's Changed

Full Changelog: 0.6.2...0.6.3

0.6.2

Choose a tag to compare

@timmo001 timmo001 released this 10 Oct 19:31

Fixes:

  • timmo-effect/no-raw-gh only reports an argv array starting with "gh" when it is passed to a spawn, exec, run or command function, so recording argv in tests, such as calls.push(["gh", ...args]), is no longer reported.

Full Changelog: 0.6.1...0.6.2

0.6.1

Choose a tag to compare

@timmo001 timmo001 released this 10 Oct 19:04

Fixes:

  • timmo-effect/no-raw-gh only reports a "gh" literal when arguments follow it, so assertions such as expect(command).toBe("gh") are no longer reported.

Full Changelog: 0.6.0...0.6.1

0.6.0

Choose a tag to compare

@timmo001 timmo001 released this 10 Oct 18:38

New rule, enabled in recommended-effect:

  • timmo-effect/no-raw-gh reports the raw execute, json and stream methods called on a yield* Gh binding from @timmo001/effect-gh, Api.raw from that package, and any call whose first argument is "gh" or an array starting with "gh", such as executor.run("gh", ...) or Bun.spawn(["gh", ...]). Use effect-gh's typed operations (0.5.0 or later), and add one to effect-gh when a command has none.

Other changes:

  • Update oxlint-tsgolint to 7.0.2004.

Full Changelog: 0.5.0...0.6.0

0.5.0

Choose a tag to compare

@timmo001 timmo001 released this 29 Sep 20:18

New rules, all enabled in the recommended configs:

  • timmo/no-untyped-custom-event reports CustomEvent used as a type without a detail type, which leaves detail as any.
  • timmo/no-explicit-inferable-type-predicate reports explicit x is T predicates that TypeScript already infers, on non-exported functions whose body is only a null, typeof or instanceof check.
  • timmo/prefer-lit-query-decorators follows eslint-plugin-lit's prefer-query-decorators, including its options and settings.lit.elementBaseClasses, and also catches this.shadowRoot!, ?. and asserted render roots. It only reports static selectors. Turn off lit/prefer-query-decorators when using it.
  • timmo/no-unchecked-query-selector-type reports type arguments on querySelector, querySelectorAll and closest, which cast the result without checking it.
  • timmo-effect/prefer-platform-services (in recommended-effect) reports Node child_process and fs and Bun's spawn, spawnSync, $, file and write in modules that import Effect. Use ChildProcessSpawner and FileSystem instead. fetch is not reported.

Other changes:

  • timmo/prefer-event-parameter-type now also reports casts on detail and nested detail members. timmo/prefer-types-over-assertions skips those so they are not reported twice.
  • The recommended configs now enable typescript/no-non-null-assertion, typescript/no-unnecessary-type-arguments, typescript/no-unnecessary-type-assertion and typescript/no-unnecessary-type-parameters as errors. The last three need typeAware.
  • Rule helpers are shared across plugins, and the copy command copies them too.
  • Pin the shared GitHub workflows to 20260929.0.

Full Changelog: 0.4.0...0.5.0

0.4.0

Choose a tag to compare

@timmo001 timmo001 released this 28 Sep 11:46
0d76409
  • Add timmo/prefer-types-over-assertions to report TypeScript assertions, including those with a SAFETY: comment, while allowing as const.
  • Use the new rule in the recommended configs instead of the upstream safety-comment requirement. The upstream rule remains available for explicit use.
  • Pin oxlint and @oxlint/plugins to the validated latest version, 1.86.0, alongside oxlint-tsgolint 7.0.2003.
  • Update package checks and pin the shared GitHub workflows to 20260927.1.

Full Changelog: 0.3.6...0.4.0

0.3.6

Choose a tag to compare

@timmo001 timmo001 released this 22 Sep 10:23
2b36665
  • Update the exact Oxlint and @oxlint/plugins peers to 1.85.0.
  • Validate packed rules with both recommended configs and type-aware linting using oxlint-tsgolint 7.0.2002.
  • Keep future toolchain updates pinned and checked together through Renovate and CI.

Full Changelog: 0.3.5...0.3.6

0.3.5

Choose a tag to compare

@timmo001 timmo001 released this 20 Sep 23:59

Changes

  • Build the local plugins before linting maintained code with all published custom rules, including tests, tooling, root configuration and packaged skill scripts.
  • Tighten internal Oxlint types and apply formatting changes without changing lint rule behaviour or exported configs.
  • Clarify installation checks so they follow the target repository's requirements and affected behaviour.
  • Refresh shared CI and npm/JSR publishing workflows.

Full Changelog: 0.3.4...0.3.5

0.3.4

Choose a tag to compare

@timmo001 timmo001 released this 17 Sep 19:46

Changes

  • Update the required oxlint and @oxlint/plugins peer versions from 1.82.0 to 1.83.0. Update both packages together when upgrading.
  • Refresh the Oxlint development dependencies, Node.js tooling and shared CI and publishing workflows.

Lint rule implementations and exported configs are unchanged.

Full Changelog: 0.3.3...0.3.4

0.3.3

Choose a tag to compare

@timmo001 timmo001 released this 10 Sep 17:34
dbfd283

Full Changelog: 0.3.2...0.3.3