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 9322098 commit 4ac0ce0
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
Expand Up @@ -74,8 +74,8 @@ jobs:
- name: Run type checking
run: yarn tsc

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

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

- name: Prettier
run: yarn prettier
- name: Run formatting
run: yarn format

unit:
name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.json
@@ -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
Expand Up @@ -18,11 +18,11 @@
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",
"format": "prettier --check . --cache",
"lint": "eslint .",
"postinstall": "husky",
"prepack": "yarn clean && yarn build",
"prettier": "prettier --check . --cache",
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
"test": "yarn lint && yarn tsc && yarn format && yarn unit",
"tsc": "tsc",
"unit": "vitest"
},
Expand Down

0 comments on commit 4ac0ce0

Please sign in to comment.