chore: rename "npm run prettier" to "npm run format" (#119)

You don't actually care what software does the formatting.
Just that it gets done.
This commit is contained in:
Patric Stout
2024-05-12 19:54:26 +02:00
committed by GitHub
parent c98fa1d907
commit 96fedb3f87
2 changed files with 4 additions and 4 deletions

View File

@@ -17,12 +17,12 @@ It will reload automatically on changes to the code.
### Linting and coding style
Each Pull Request is validated by eslint and prettier.
Each Pull Request is validated by `eslint` and `prettier`.
To run this locally:
```bash
npm run lint
npm run prettier
npm run format
```
The last command will modify source files where needed.

View File

@@ -9,8 +9,8 @@
"build": "rollup -c",
"build-storybook": "storybook build",
"dev": "storybook dev -p 6006 --no-open",
"lint": "eslint .storybook src --ext .js,.ts,.tsx --cache && prettier -c .storybook src",
"prettier": "prettier -w .storybook src"
"format": "prettier -w .storybook src",
"lint": "eslint .storybook src --ext .js,.ts,.tsx --cache && prettier -c .storybook src"
},
"repository": {
"type": "git",