Update development.md
This commit is contained in:
parent
6763da57a6
commit
56349e57e5
1 changed files with 3 additions and 4 deletions
|
@ -34,11 +34,10 @@ pnpm lint
|
||||||
## Code formatting with pre-commit hooks
|
## Code formatting with pre-commit hooks
|
||||||
|
|
||||||
To ensure a consistent style and formatting across the project source, the project utilizes Git [`pre-commit`](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) hooks to perform some formatting and linting before a commit is allowed.
|
To ensure a consistent style and formatting across the project source, the project utilizes Git [`pre-commit`](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) hooks to perform some formatting and linting before a commit is allowed.
|
||||||
That way, everyone uses the same style and some common issues can be caught early on.
|
|
||||||
|
|
||||||
Once installed, hooks will run when you commit. If the formatting isn't quite right or a linter catches something, the commit will be rejected.
|
Once installed, hooks will run when you commit. If the formatting isn't quite right, the commit will be rejected and you'll need to look at the output and fix the issue. Most hooks will automatically format failing files, so all you need to do is `git add` those files again and retry your commit.
|
||||||
You'll need to look at the output and fix the issue. Some hooks will format failing files, so all you need to do is `git add` those files again
|
|
||||||
and retry your commit.
|
See the [pre-commit documentation](https://pre-commit.com/#install) to get started.
|
||||||
|
|
||||||
## Service Widget Guidelines
|
## Service Widget Guidelines
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue