Skip to content

Commit 105143b

Browse files
Update Node package dependencies & GitHub Action versions
In GH-32 [1] all ESLint packages and dependencies have been updated to the latest version. This commit updates all repository development packages and GitHub Actions to the latest versions and adapts to the changes: - Updated to ESLint v7 - bumped package version from `v6.2.0` to `v7.23.0` [2]. See GH-32 [1] and the official v7 migration guide [3] for more details. - Removed `--ext` option for ESLint tasks - as of ESLint v7, files matched by `overrides[].files` are now linted by default [4] which makes it obsolete to explicitly define file extensions like `*.js`. - del-cli [5] - Bumped minimum version from `v2.0.0` to `v3.0.1` [6]. - eslint-config-prettier [7] - Bumped version from `v6.1.0` to `v8.1.0` [8]. - eslint-plugin-prettier [9] - Bumped minimum version from `v3.1.0` to `v3.3.1` [10]. - eslint-plugin-import [11] - Bumped minimum version from `v2.18.2` to `v2.22.1` [12]. - husky [13] - Bumped minimum version from `v3.0.4` to `v6.0.0` [14]. This also includes some breaking changes that require migrations. Executed 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 [15] - Bumped minimum version from `v9.2.3` to `v10.5.4` [16]. - prettier [17] - Bumped minimum version from `v1.18.2` to `v2.2.1` [18]. - remark-cli [19] - Bumped minimum version from `v7.0.0` to `v9.0.0` [20]. [1]: #32 [2]: eslint/eslint@v6.2.0....v7.23.0 [3]: https://eslint.org/docs/user-guide/migrating-to-7.0.0 [4]: https://eslint.org/docs/user-guide/migrating-to-7.0.0#lint-files-matched-by-overridesfiles-by-default [5]: https://github.com/sindresorhus/del-cli [6]: sindresorhus/del-cli@v2.0.0...v3.0.1 [7]: https://github.com/prettier/eslint-config-prettier [8]: prettier/eslint-config-prettier@v6.1.0...v8.1.0 [9]: https://github.com/prettier/eslint-plugin-prettier [10]: prettier/eslint-plugin-prettier@v3.1.0...v3.3.1 [11]: https://github.com/benmosher/eslint-plugin-import [12]: import-js/eslint-plugin-import@v2.18.2...v2.22.1 [13]: https://github.com/typicode/husky [14]: typicode/husky@v3.0.4...v6.0.0 [15]: https://github.com/okonet/lint-staged [16]: typicode/husky@v9.2.3...v10.5.4 [17]: https://github.com/prettier/prettier [18]: typicode/husky@v1.18.2...v2.2.1 [19]: https://github.com/remarkjs/remark/releases [20]: typicode/husky@v7.0.0...v9.0.0 Co-authored-by: Sven Greb <[email protected]> GH-33
1 parent 486b2d1 commit 105143b

File tree

5 files changed

+475
-1025
lines changed

5 files changed

+475
-1025
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn run lint-staged

.huskyrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,32 @@
2525
"yarn": "^1.17.3"
2626
},
2727
"scripts": {
28-
"clean": "del build",
28+
"clean": "del build/",
2929
"docs:build": "gitbook install src && gitbook build src build/docs",
3030
"docs:dev": "yarn docs:build && gitbook serve src build/docs",
3131
"format": "npm-run-all format:pretty format:fix",
32-
"format:fix": "eslint --fix --ext .js .",
32+
"format:fix": "eslint --fix .",
3333
"format:pretty": "prettier --write \"**/*.{js,json,md,yml}\"",
3434
"lint": "npm-run-all lint:*",
35-
"lint:js": "eslint --ext .js .",
35+
"lint:js": "eslint .",
3636
"lint:md": "remark --no-stdout . \".github/**/*.md\"",
3737
"lint:pretty": "prettier --check \"**/*.{js,json,md,yml}\"",
38+
"prepare:husky": "husky install",
39+
"prepare": "npm-run-all prepare:*",
3840
"test": "yarn workspaces run test"
3941
},
4042
"devDependencies": {
41-
"del-cli": "2.0.0",
42-
"eslint": "6.2.0",
43-
"eslint-config-prettier": "6.1.0",
44-
"eslint-plugin-import": "2.18.2",
45-
"eslint-plugin-prettier": "3.1.0",
43+
"del-cli": "^3.0.1",
44+
"eslint": "^7.23.0",
45+
"eslint-config-prettier": "^8.1.0",
46+
"eslint-plugin-import": "^2.22.1",
47+
"eslint-plugin-prettier": "^3.3.1",
4648
"gitbook-cli": "2.3.2",
47-
"husky": "3.0.4",
48-
"lint-staged": "9.2.3",
49-
"npm-run-all": "4.1.5",
50-
"prettier": "1.18.2",
51-
"remark-cli": "7.0.0",
49+
"husky": "^6.0.0",
50+
"lint-staged": "^10.5.4",
51+
"npm-run-all": "^4.1.5",
52+
"prettier": "^2.2.1",
53+
"remark-cli": "^9.0.0",
5254
"remark-preset-lint-arcticicestudio": ">=0.3.0 <1.0.0"
5355
},
5456
"private": true,

0 commit comments

Comments
 (0)