Skip to content

Commit

Permalink
build(deps-dev): Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 (#1030
Browse files Browse the repository at this point in the history
)

* 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]>
  • Loading branch information
dependabot[bot] and tclindner authored Jul 3, 2023
1 parent 2888a34 commit 4da6b13
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 15 deletions.
43 changes: 29 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-unicorn": "^47.0.0",
"figures": "^3.2.0",
"jest": "^27.5.1",
"npm-package-json-lint-config-default": "^5.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/validators/dependency-audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const auditDependenciesWithMajorVersionOfZero = (
if (semver.validRange(dependencyVersRange)) {
const startIndex = 0;
const length = 1;
// eslint-disable-next-line unicorn/prefer-string-replace-all
const dependencyVersion = dependencyVersRange.replace(/\D+/g, '');
// eslint-disable-next-line unicorn/prefer-string-slice
const dependencyMjrVersion = dependencyVersion.substr(startIndex, length);
Expand Down

0 comments on commit 4da6b13

Please sign in to comment.