Skip to content

Commit

Permalink
Add the make lint jslint commands to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Feb 15, 2024
1 parent 0c19202 commit a8a8076
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ $ git checkout -b my-branch -t origin/master

#### Step 3: Code


Well, I think you know how to do that. Just be sure to follow the coding
guidelines from the Go community (gofmt,
[Effective Go](https://golang.org/doc/effective_go.html), comment the code,
Expand All @@ -74,10 +75,18 @@ We are using [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports) to
format code, and [golangci-lint](https://github.com/golangci/golangci-lint) to
detect code smells.

```
$ make lint
```

We are using [eslint](https://eslint.org/) to lint JavaScript code. The linting
rules are based on
[cozy-app](https://github.com/cozy/cozy-libs/tree/master/packages/eslint-config-cozy-app)

```
$ make jslint
```

#### Step 4: Test

Don't forget to add tests and be sure they are green:
Expand Down

0 comments on commit a8a8076

Please sign in to comment.