mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-31 12:04:23 +01:00
change "lint" to pre-commit and add format
This commit is contained in:
committed by
Tony Giorgio
parent
fdf879f123
commit
878196a71e
@@ -31,6 +31,10 @@ just test-ui
|
||||
|
||||
Hopefully your editor picks up on the `.prettirrc` file and auto formats accordingly. If you want to format everything in the project run `pnpm run format`.
|
||||
|
||||
## Contributing
|
||||
|
||||
Before committing make sure to run `pnpm run pre-commit`. This will typecheck, lint, and format everything so CI won't hassle you.
|
||||
|
||||
### Local
|
||||
|
||||
If you want to develop against a local version of [the node manager](https://github.com/MutinyWallet/mutiny-node), you may want to `pnpm link` it.
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"start": "solid-start start",
|
||||
"check-types": "tsc --noemit",
|
||||
"eslint": "eslint src",
|
||||
"lint": "pnpm run eslint && pnpm run check-types",
|
||||
"pre-commit": "pnpm run eslint && pnpm run check-types && pnpm run format",
|
||||
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
|
||||
"check-format": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user