Skip to content

Version 4.0.0

Latest

Choose a tag to compare

@jaydenseric jaydenseric released this 28 Jul 09:44

Major

  • Updated Node.js support to ^22.13.0 || ^24.0.0 || >=26.0.0.

  • Updated the peer dependency eslint to ^10.0.0.

  • Use the JSDoc tag @import for type imports (requires TypeScript v5.5+).

  • Changed the ESLint plugin module format from CJS in a .js file to ESM in a .mjs file. To migrate a deep import:

    - import eslintPluginOptimalModules from "eslint-plugin-optimal-modules/eslintPluginOptimalModules.js";
    + import eslintPluginOptimalModules from "eslint-plugin-optimal-modules/eslintPluginOptimalModules.mjs";
  • The type ESLintPlugin is no longer exported.

Minor

  • Added the ESLint plugin property meta.namespace with the value "optimal-modules".
  • Added the ESLint plugin config recommended property name with the value "optimal-modules/recommended".

Patch

  • Updated dev dependencies.
  • Updated package scripts.
  • Updated GitHub Actions CI config.
  • Updated TypeScript config.
  • Updated VS Code workspace settings.
  • Updated the ESLint config.
  • Switched to the Node.js test runner code coverage, removing the dev dependency coverage-node.
  • Moved rules into separate modules.
  • Improved tests.
  • Sorted config in .editorconfig.
  • Added a .gitattributes file to enforce LF line endings.
  • Updated docs.