Skip to content

Commit

Permalink
Update Node packages (#75)
Browse files Browse the repository at this point in the history
Updated all Node packages to their latest versions:

- husky [1] — Bumped minimum version from `v4.3.0` to `v6.0.0` [2].
  This also includes some breaking changes that require migrations.
  Run the official migration CLI to automatically migrate from v4 to v6:
  `npx husky-init && npm exec -- github:typicode/husky-4-to-6
  --remove-v4-config`
- lint-staged [3] — Bumped minimum version from `v10.5.1` to
  `v10.5.4` [4].
- remark-cli [5] — Bumped minimum version from `v8.0.1` to
  `v9.0.0` [6].
- Validated and fixed/improved matches after running formatting and
  linting tools with their latest versions.

[1]: https://github.com/typicode/husky
[2]: typicode/husky@v4.3.0...v6.0.0
[3]: https://github.com/okonet/lint-staged
[4]: typicode/husky@v10.5.1...v10.5.4
[5]: https://github.com/remarkjs/remark/releases
[6]: typicode/husky@v8.0.1...v9.0.0

Closes GH-74
  • Loading branch information
svengreb authored Apr 1, 2021
1 parent b996786 commit d827dbf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

# Copyright (c) 2020-present Sven Greb <development@svengreb.de>
# This source code is licensed under the MIT license found in the LICENSE file.

# The configuration for husky.
#
# References:
# 1. https://github.com/typicode/husky

. "$(dirname "$0")/_/husky.sh"

npm exec lint-staged
15 changes: 0 additions & 15 deletions .huskyrc.js

This file was deleted.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
"format:pretty": "prettier --write .",
"lint": "run-s lint:*",
"lint:md": "remark --no-stdout . \".github/**/*.md\"",
"lint:pretty": "prettier --check ."
"lint:pretty": "prettier --check .",
"prepare:husky": "husky install",
"prepare": "run-s prepare:*"
},
"devDependencies": {
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"remark-cli": "^8.0.1",
"remark-cli": "^9.0.0",
"remark-preset-lint-arcticicestudio": ">=0.3.0 <1.0.0"
}
}

0 comments on commit d827dbf

Please # to comment.