eslint-plugin v7.4.2
Changed
- chore: Upgrade
@boundaries/elementsto 3.3.2,@boundaries/configto 1.0.1 and@boundaries/policiesto 1.0.1.
Fixed
- fix(#622): Warn about an element or file descriptor whose
captureorbaseCaptureis set and is not an array, such ascapture: "name", and ignore it. ESLint stopped with an error such asdescriptor.capture.join is not a functionwhen it loaded any rule, except for thebaseCaptureof a file descriptor, which the plugin used taking each character as a name; write the names in an array to keep using that descriptor. - fix(#622): Each configuration block uses its own
boundaries/filesdescriptors when the settings of several blocks differ only in thebasePatternorbaseCaptureof a file descriptor. Since 7.0.0, the plugin used the descriptors of the first of those blocks it linted for all of them, so errors may appear or disappear in the others.
elements v3.3.2
Fixed
- fix(#622):
isElementDescriptorandisFileDescriptorreturnfalsefor a descriptor whosecaptureorbaseCaptureis set and is not an array, andgetMatcherthrows the error of an invalid descriptor for it and for anullorundefineddescriptor. It threw an error such asdescriptor.capture.join is not a functioninstead, except for thebaseCaptureof a file descriptor, whose characters it took as names. - fix(#622):
getMatcherno longer returns the matcher of another configuration that differs only in thebasePatternorbaseCaptureof a file descriptor, or in patterns or capture names that it wrote as the same text in its cache key, such aspattern: "a,b"andpattern: ["a", "b"].
config v1.0.1
Changed
- chore: Upgrade
@boundaries/elementsto 3.3.2.
Fixed
- fix(#622):
normalizeSettingsandnormalizeConfigreport an element or file descriptor whosecaptureorbaseCaptureis set and is not an array as invalid, and leave it out.
policies v1.0.1
Changed
- chore: Upgrade
@boundaries/elementsto 3.3.2 and@boundaries/configto 1.0.1.
Fixed
- fix(#622):
getMatcherand the functions that use it, such asdescribeEntityanddescribeDependency, use the file descriptors of the settings they receive when other settings differ from them only in thebasePatternorbaseCaptureof a file descriptor. They used the descriptors of the first of those settings.