Add a prettier npm script (#5986)

* Add a prettier npm script

* Linting -> Formatting
This commit is contained in:
Alexander Prinzhorn 2023-03-13 12:26:30 +01:00 committed by GitHub
parent 8f13293771
commit 8e7564e995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -45,7 +45,7 @@ jobs:
- name: Run prettier
run: |
npm ci
npx prettier --write .
npm run prettier
working-directory: web
- uses: mhils/add-pr-ref-in-changelog@main

View File

@ -13,8 +13,9 @@
- Run `npm test` to run the test suite.
## Linting
- Run `npx prettier --write .` to lint your code.
## Code formatting
- Run `npm run prettier` to format your code. You can also integrate prettier into your editor, see https://prettier.io/docs/en/editors.html
## Architecture

View File

@ -4,7 +4,8 @@
"scripts": {
"test": "tsc --noEmit && jest --coverage",
"build": "gulp prod",
"start": "gulp"
"start": "gulp",
"prettier": "prettier --write ."
},
"dependencies": {
"@popperjs/core": "^2.9.3",