Skip to content

Commit 0d4e81b

Browse files
Check Prettier formatting in CI pipeline
Replace precommit hook with a check in GitHub Actions.
1 parent ee2c171 commit 0d4e81b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node-version }}
3333

3434
- run: npm install
35+
- run: npx prettier --check .
3536
- run: npm run lint
3637
- run: npm run build
3738
- run: npm run test

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"lint": "run-s lint:*",
2828
"lint:src": "tsc -p ./tsconfig.json && eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json",
2929
"lint:demo": "tsc -p ./demo/tsconfig.json && eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json",
30-
"precommit": "pretty-quick --staged",
3130
"prepublish": "npx publish-please guard",
3231
"publish-please": "npx publish-please",
3332
"publish-please-prereqs": "run-s lint test build",
@@ -57,12 +56,10 @@
5756
"eslint-import-resolver-typescript": "^2.3.0",
5857
"eslint-plugin-import": "^2.18.2",
5958
"eslint-plugin-jest": "^25.2.1",
60-
"husky": "^7.0.0",
6159
"jest": "^27.0.1",
6260
"jest-when": "^3.1.0",
6361
"npm-run-all": "^4.1.5",
6462
"prettier": "2.2.1",
65-
"pretty-quick": "^3.1.0",
6663
"regex-to-strings": "^2.0.1",
6764
"rimraf": "^3.0.2",
6865
"ts-jest": "^27.0.1",

0 commit comments

Comments
 (0)