Skip to content

Commit

Permalink
Rename prettier command to format
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Apr 15, 2024
1 parent 8a23a9c commit fd6c6c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
- name: Run type checking
run: yarn tsc

prettier:
name: Prettier
format:
name: Formatting
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -106,5 +106,5 @@ jobs:
- name: Install dependencies
run: yarn --immutable

- name: Prettier
run: yarn prettier
- name: Run formatting
run: yarn format
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "prettier --write"
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "yarn format --write"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"scripts": {
"build": "vite build",
"dev": "vite serve",
"format": "prettier --check . --cache",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"postinstall": "husky",
"prettier": "prettier --check . --cache",
"preview": "vite preview",
"test": "yarn lint && yarn tsc && yarn prettier",
"test": "yarn lint && yarn tsc && yarn format",
"tsc": "tsc"
},
"author": {
Expand Down

0 comments on commit fd6c6c8

Please sign in to comment.