Skip to content

Commit bd0e5dd

Browse files
committed
format:fix
1 parent 50ba1fd commit bd0e5dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ To run the tool locally:
4848
Use `prettier --check` or `prettier --write` to check or format the code.
4949
```bash
5050
npm run format
51+
## fix the code style automatically
52+
npm run format:fix
5153
```
5254

5355
6. Visit [http://localhost:5173/markdown-html-converter/](http://localhost:5173/markdown-html-converter/) to start using the tool locally.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"test": "vitest --watch=false",
1010
"deploy": "npm run add-version && npm run build && gh-pages -d dist",
1111
"add-version": "echo \"VITE_COMMIT_HASH=$(git rev-parse --short HEAD)\" > .env",
12-
"format": "prettier --check 'src/**/*.{js,jsx}' 'tests/**/*.{js,jsx}'"
12+
"format": "prettier --check 'src/**/*.{js,jsx}' 'tests/**/*.{js,jsx}'",
13+
"format:fix": "prettier --write 'src/**/*.{js,jsx}' 'tests/**/*.{js,jsx}'"
1314
},
1415
"dependencies": {
1516
"@testing-library/dom": "^10.4.0",

0 commit comments

Comments
 (0)