Skip to content

Commit 96061cd

Browse files
committed
Upgrade prettier to v3 and add scripts
1 parent 05d92b7 commit 96061cd

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ jobs:
3434
run: npm ci
3535
- name: Lint
3636
run: npm run lint
37+
- name: Prettier
38+
run: npm run prettier:check
3739
- name: Test
3840
run: npm test

package-lock.json

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"posttest": "npm run lint",
1414
"preversion": "npm test",
1515
"version": "bin/cmd.js -c --footer",
16-
"postversion": "git push --follow-tags && npm publish"
16+
"postversion": "git push --follow-tags && npm publish",
17+
"prettier:check": "prettier --check '**/*.{js,json,md}'",
18+
"prettier:write": "prettier --write '**/*.{js,json,md}'"
1719
},
1820
"keywords": [
1921
"changelog",
@@ -51,7 +53,7 @@
5153
"husky": "^4.3.8",
5254
"lint-staged": "^10.5.4",
5355
"mocha": "^10.2.0",
54-
"prettier": "^2.2.1"
56+
"prettier": "^3.1.1"
5557
},
5658
"repository": {
5759
"type": "git",

0 commit comments

Comments
 (0)