unstale

npm / eslint-plugin-n

eslint-plugin-n

What changed in eslint-plugin-n 16 to 18, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.

11 breaking2 deprecations10 new APIs and options5 behavior and defaults1 tooling20 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

eslint-plugin-n 1828 changes

Breaking changes 5

  • The TypeScript peer dependency version constraint was updated, affecting which TypeScript versions are compatible.

    18.0.1release notes

  • The plugin migrated from CommonJS to ESM, changing how projects load it.

    18.0.0release notes

  • The rule now disallows extra properties in its options.

    18.0.0release notes

  • The plugin now requires Node.js >=20 and ESLint >= 8.57.1.

    18.0.0release notes

  • The no-sync rule's ts-declaration-location dependency moved to peerDependencies.

    18.0.0release notes

New APIs and options 4

  • Implements the prefer-import/assert-strict rule.

    18.3.0release notes

  • Adds the prefer-process-get-builtin-module rule.

    18.3.0release notes

  • Adds module.exports support for require(esm) interop.

    18.2.0release notes

  • Support was added for devEngines.runtime in package.json.

    18.1.0release notes

Behavior and default changes 4

  • The no-extraneous rules now support pnpm workspaces.

    18.4.0release notes

  • Classifies util.styleText as experimental.

    18.3.0release notes

  • The rule allows dependencies declared at the workspace root.

    18.1.0release notes

  • The rule was removed from the recommended configuration.

    18.0.0release notes

Fixes and other changes 15

  • Classifies modern Node built-ins correctly when checking for mixed requires.

    18.5.0release notes

  • Recognizes Promise.withResolvers as supported since Node.js 22.0.0.

    18.5.0release notes

  • Supports Node.js 20.20, 22.23, 24.22, and 26.12.

    18.5.0release notes

  • The rule now properly handles extension override mappings.

    18.4.1release notes

  • The rule now covers fs.watch.

    18.4.1release notes

  • Handles import.meta paths in no-path-concat.

    18.3.0release notes

  • Supports brace expansion and extglobs in package files.

    18.3.0release notes

  • Reports object, array, and template literals.

    18.2.2release notes

  • HTTP imports are ignored by no-missing-import.

    18.2.2release notes

  • Ensures the package's types have valid syntax.

    18.2.1release notes

  • The rule now handles type-only @types dependencies.

    18.1.0release notes

  • Leading forward slashes are now allowed in the files field.

    18.1.0release notes

  • The rule's support data now covers Node.js 22.20–22.21 and 24.0–24.12.

    18.0.0release notes

  • The rule now recognizes the fs.promises APIs cp, glob, lutimes, opendir, rm, and statfs.

    18.0.0release notesrelease notes

  • An explicit mapping was added for TypeScript extensions.

    18.0.0release notes

eslint-plugin-n 1717 changes

Breaking changes 3

Deprecations 2

  • Adds the hashbang rule as the renamed replacement for the deprecated shebang rule.

    17.0.0release notes

  • The shebang rule is deprecated in favor of hashbang.

    17.0.0release notes

New APIs and options 5

Behavior and default changes 1

  • The plugin starts using enhanced-resolve to improve TypeScript support.

    17.0.0release notes

Tooling 1

  • Adds TypeScript (JSDoc) checking and definition generation.

    17.0.0release notes

Fixes and other changes 5

  • Handles directory index imports when checking file extensions in imports.

    17.23.2release notes

  • Handles files with dots in their basenames when checking file extensions in imports.

    17.23.2release notes

  • Resolves full typed names for ignore patterns.

    17.23.2release notes

  • Updates the es-builtins data used by the plugin.

    17.0.0release notes

  • Updates the supported ES Syntax data used by the plugin.

    17.0.0release notes

eslint-plugin-n 164 changes

Breaking changes 3

  • The default ecmaVersion is updated to 2021.

    16.0.0release notes

  • The default value for engines.node is updated to 16.0.0.

    16.0.0release notes

  • Node.js versions below 16 are no longer supported.

    16.0.0release notes

New APIs and options 1