Skip to content

Commit

Permalink
docs: add note about ng lint to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Mar 10, 2022
1 parent fa15d68 commit 531275c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -713,6 +713,17 @@ Example repo: [sudo-suhas/lint-staged-django-react-demo](https://github.com/sudo

</details>

### Can I use `lint-staged` with `ng lint`

<details>
<summary>Click to expand</summary>

You should not use `ng lint` through _lint-staged_, because it's designed to lint an entire project. Instead, you can add `ng lint` to your git pre-commit hook the same way as you would run lint-staged.

See issue [!951](https://github.com/okonet/lint-staged/issues/951) for more details and possible workarounds.

</details>

### How can I ignore files from `.eslintignore`?

<details>
Expand Down

0 comments on commit 531275c

Please sign in to comment.