Skip to content

Commit 531275c

Browse files
committed
docs: add note about ng lint to README.md
1 parent fa15d68 commit 531275c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,17 @@ Example repo: [sudo-suhas/lint-staged-django-react-demo](https://github.com/sudo
713713

714714
</details>
715715

716+
### Can I use `lint-staged` with `ng lint`
717+
718+
<details>
719+
<summary>Click to expand</summary>
720+
721+
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.
722+
723+
See issue [!951](https://github.com/okonet/lint-staged/issues/951) for more details and possible workarounds.
724+
725+
</details>
726+
716727
### How can I ignore files from `.eslintignore`?
717728

718729
<details>

0 commit comments

Comments
 (0)