Skip to content

Commit 4da6b13

Browse files
build(deps-dev): Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 (#1030)
* build(deps-dev): Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 46.0.0 to 47.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](sindresorhus/eslint-plugin-unicorn@v46.0.0...v47.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update dependency-audit.ts --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Lindner <[email protected]>
1 parent 2888a34 commit 4da6b13

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

package-lock.json

Lines changed: 29 additions & 14 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
@@ -71,7 +71,7 @@
7171
"eslint-plugin-import": "^2.27.5",
7272
"eslint-plugin-jest": "^27.2.1",
7373
"eslint-plugin-prettier": "^4.2.1",
74-
"eslint-plugin-unicorn": "^46.0.0",
74+
"eslint-plugin-unicorn": "^47.0.0",
7575
"figures": "^3.2.0",
7676
"jest": "^27.5.1",
7777
"npm-package-json-lint-config-default": "^5.0.0",

src/validators/dependency-audit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export const auditDependenciesWithMajorVersionOfZero = (
152152
if (semver.validRange(dependencyVersRange)) {
153153
const startIndex = 0;
154154
const length = 1;
155+
// eslint-disable-next-line unicorn/prefer-string-replace-all
155156
const dependencyVersion = dependencyVersRange.replace(/\D+/g, '');
156157
// eslint-disable-next-line unicorn/prefer-string-slice
157158
const dependencyMjrVersion = dependencyVersion.substr(startIndex, length);

0 commit comments

Comments
 (0)