Packages

oxlint

1.94.0 · 16 Nov 2026MIT54.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.40.0

19 Jan 2026Where it was published

1.94.0 is the newest release of 1.x.

In short

3 breaking12 new15 fixed11 internal

  • Breaking

    span: Use ModuleKind::CommonJS for .cjs and .cts file extensions

  • Breaking

    linter/plugins: Prevent access to cwd in createOnce

  • Breaking

    ast: Move scope from TSEnumDeclaration to TSEnumBody

Release note

The section about oxlint of a note shared by several packages.

Oxlint v1.40.0

Breaking changes

  • Breaking

    span: Use ModuleKind::CommonJS for .cjs and .cts file extensions

  • Breaking

    linter/plugins: Prevent access to cwd in createOnce

  • Breaking

    ast: Move scope from TSEnumDeclaration to TSEnumBody

Features

  • linter/plugins: Support commonjs source type in RuleTester

  • napi/parser, napi/transform: Accept sourceType: "commonjs"

  • parser: Implement unambiguous module parsing for JS/TS files

  • span: Add sourceType: 'commonjs' support

  • linter: Implement rule option validation/error handling for jest/no-hooks and eslint/no-return-assign rules.

  • vscode: Change icon source

  • linter: Update linter JSON rule output to include extra information.

  • linter/no-useless-rename: Add automatic fix

  • linter/no-unused-vars: Improve fixer for unused imports

  • linter/fixer: Expose find_next_token_within in fixer

  • linter/fixer: Expose find_next_token_from in fixer

Bug Fixes

  • linter/plugins: report accept out of range column indexes in loc

  • linter: Move typescript/prefer-optional-chain to nursery for now.

  • linter/plugins: Rule tester default to module source type in ESLint compat mode

  • vscode: Resolve binary paths with node resolver

  • linter: Update react/jsx-max-depth to raise an error if provided invalid config options.

  • linter: Raise errors for invalid config on eslint/prefer-promise-reject-errors rule

  • linter/rules-of-hooks: Detect hook calls inside JSX render props

  • linter: Sort paths by length instead of alphabetically for depth heuristic

  • linter: Fix LSP panic from stale directive spans

  • linter: Fix stack overflow in no-unreachable rule on large files

  • linter/plugins: Use correct ScriptKind for tokens

  • oxlint/lsp: Don't send workspace/diagnostic/refresh notification on watched file changes

  • linter/prefer-destructuring: Fix rule to exclude using and await using

  • linter/no-promise-executor-return: Check if Promise is the global one

  • linter/no-await-in-loop: Add support for await using

  • linter/no-import-node-test: Mark fixer as suggestion

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.