Skip to content

Commit a6b0b85

Browse files
authored
Merge pull request #325 from javierbrea/release
Release 4.1.0
2 parents 1fe6f83 + 3f7a221 commit a6b0b85

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
1111
### Removed
1212
### BREAKING CHANGES
1313

14+
## [4.1.0] - 2024-01-13
15+
16+
### Changed
17+
- feat(#323): Specify which element type has issues during settings validation (Thanks to [@hmnzr](https://github.com/hmnzr))
18+
1419
## [4.0.1] - 2023-12-01
1520

1621
### Fixed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-boundaries",
3-
"version": "4.0.1",
3+
"version": "4.1.0",
44
"description": "Eslint plugin checking architecture boundaries between elements",
55
"keywords": [
66
"eslint",

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sonar.organization=javierbrea
22
sonar.projectKey=javierbrea_eslint-plugin-boundaries
3-
sonar.projectVersion=4.0.1
3+
sonar.projectVersion=4.1.0
44

55
sonar.javascript.file.suffixes=.js
66
sonar.sourceEncoding=UTF-8

src/helpers/validations.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,20 @@ function validateElements(elements) {
140140
}
141141
if (element.mode && !VALID_MODES.includes(element.mode)) {
142142
warnOnce(
143-
`Invalid mode property in '${ELEMENTS}' setting. Should be one of ${VALID_MODES.join(
143+
`Invalid mode property of type ${
144+
element.type
145+
} in '${ELEMENTS}' setting. Should be one of ${VALID_MODES.join(
144146
",",
145147
)}. Default value "${VALID_MODES[0]}" will be used instead`,
146148
);
147149
}
148150
if (!element.pattern || !(isString(element.pattern) || isArray(element.pattern))) {
149-
warnOnce(`Please provide a valid pattern in '${ELEMENTS}' setting`);
151+
warnOnce(
152+
`Please provide a valid pattern to type ${element.type} in '${ELEMENTS}' setting`,
153+
);
150154
}
151155
if (element.capture && !isArray(element.capture)) {
152-
warnOnce(`Invalid capture property in '${ELEMENTS}' setting`);
156+
warnOnce(`Invalid capture property of type ${element.type} in '${ELEMENTS}' setting`);
153157
}
154158
});
155159
}

0 commit comments

Comments
 (0)