Major
-
Updated Node.js support to
^22.13.0 || ^24.0.0 || >=26.0.0. -
Updated the peer dependency
eslintto^10.0.0. -
Use the JSDoc tag
@importfor type imports (requires TypeScript v5.5+). -
Changed the ESLint plugin module format from CJS in a
.jsfile to ESM in a.mjsfile. 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
ESLintPluginis no longer exported.
Minor
- Added the ESLint plugin property
meta.namespacewith the value"optimal-modules". - Added the ESLint plugin config
recommendedpropertynamewith 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
.gitattributesfile to enforce LF line endings. - Updated docs.