Skip to content

Commit

Permalink
Document the --no-verify option for the content linter (#42126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanpalm authored Sep 6, 2023
1 parent f6e00f9 commit 1ec7366
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ Run the specified linter rules on specific files or directories:
npm run lint-content -- --rules heading-increment code-fence-line-length --path content/FILENAME.md content/DIRECTORY
```

#### Bypass the commit hook

If the linter catches errors that you did not introduce, you can bypass the git commit hook by using the `--no-verify` option when you commit your changes.

```shell
git commit -m 'MESSAGE' --no-verify
```

### Display the help menu for the content linter script

```shell
Expand Down

0 comments on commit 1ec7366

Please sign in to comment.