Skip to content

Commit

Permalink
Add prettier and a pre-commit hook to run it
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Dec 6, 2024
1 parent 39d8497 commit d242da8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.4.2
hooks:
- id: prettier
1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proseWrap: always
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,19 @@ Please use branches and pull requests to contribute content. If you are not part

```shell
git clone https://github.com/NLeSC/guide.git
cd guide
git branch newbranch
git checkout newbranch
```

Please install [pre-commit](https://pre-commit.com/) and enable the pre-commit
hooks by running

```shell
pre-commit install
```
to automatically format your changes when committing.

Add your new awesome feature, fix bugs, make other changes.

To preview changes locally, host the repo with a static file web server:
Expand Down

0 comments on commit d242da8

Please sign in to comment.