mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-26 23:00:40 +00:00
Add a prettier npm script (#5986)
* Add a prettier npm script * Linting -> Formatting
This commit is contained in:
parent
8f13293771
commit
8e7564e995
2
.github/workflows/autofix.yml
vendored
2
.github/workflows/autofix.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user