Releases: javierbrea/eslint-plugin-boundaries
Releases · javierbrea/eslint-plugin-boundaries
Update dependencies
Changed
- chore: Bump eslint-module-utils to 2.8.1
- chore: Update devDependencies
- chore: Upgrade Node.js versions used in pipelines. Remove Node.js 16.x. Add Node.js 22.x
- chore: Bump actions/cache to v4
- chore: Bump actions/upload-artifact to v4
- chore: Bump actions/download-artifact to v4
Dependency node "require"
Added
- feat: Add
require
dependency node, enabling to analyze dependencies inrequire(...)
calls - chore: Lint code using eslint-plugin-boundaries in its own codebase
Improve settings validation
Support unexistant capture keys
Fixed
- fix: Avoid error when rule element matchers define a capture key but some element does not have that capture key
Dependency nodes
Added
- feat(#213): Add
dependency-nodes
setting to allow analyzing dependencies from additional nodes, such as exports or dynamic imports. (@gridsane) - feat: Add
additional-dependency-nodes
setting to add custom dependency nodes to the default ones. For example, you could enable to analyze dependencies injest.mock(...)
, etc. (@gridsane)
BREAKING CHANGES
- fix: Fixed the error position in multiline imports. See "how to migrate from v3 to v4" guide.
Update dependencies
Changed
- chore(deps): Update dependencies
root-path setting
Added
- feat(#296): Add
root-path
setting to allow defining the root path of the project. It is useful when executing the eslint command from a different folder than the project root.
importKind option
Added
- feat(#298): Add
importKind
option toelement-types
,entry-point
andexternal
rules. It allows to define if the rule applies when the dependency is being imported as a value or as a type. - chore: Add meta name and version to plugin exported object
- chore: Handle concurrency in pipelines
Fixed
- fix(#295): Replace template values in custom messages using a Regexp, so it replaces all occurrences
- fix: Do not throw error when rule contains matchers for captured values but element has not captured values
Changed
- chore(deps): Update dependencies
- chore(deps): Use NodeJs 16.x, 18.x and 20.x in pipelines
- refactor: Use optional chain expressions
Matching paths in external modules
Added
- feat(#297): Support matching imported external module path in
external
rule using micromatch patterns
Update devDependencies
Changed
- chore(deps): Update devDependencies