Skip to content

Commit 2b89837

Browse files
committed
chore: check formatting on CI
1 parent e8f087e commit 2b89837

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ jobs:
2121

2222
- name: Lint
2323
run: npm run lint
24+
25+
- name: Check formatting
26+
run: npm run format:check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"test:watch": "react-scripts test --env=jsdom",
3838
"release": "npm run test && npm run prepare && dotenv release-it",
3939
"lint": "eslint . --ext .js,.ts,.tsx",
40-
"format": "prettier --write {src,playground}"
40+
"format": "prettier --write {src,playground}",
41+
"format:check": "prettier --check {src,playground}/**/*.{ts,tsx}"
4142
},
4243
"peerDependencies": {
4344
"react": ">=16.0.0",

0 commit comments

Comments
 (0)