Skip to content

Commit 971ffd2

Browse files
committed
test: Format codebase with prettier
1 parent 8f3bd3c commit 971ffd2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
with:
3838
useLockFile: false
3939

40+
# TODO: Can be removed if https://github.com/kentcdodds/kcd-scripts/pull/146 is released
41+
- name: Verify format (`npm run format` committed?)
42+
run: npm run format -- --check --no-write
43+
4044
# as requested by the React team :)
4145
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
4246
- name: ⚛️ Setup react

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean",
1515
"build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean",
1616
"build:main": "kcd-scripts build --no-clean",
17+
"format": "kcd-scripts format",
1718
"lint": "kcd-scripts lint",
1819
"setup": "npm install && npm run validate -s",
1920
"test": "kcd-scripts test",

0 commit comments

Comments
 (0)