Skip to content

Commit a987e6a

Browse files
committed
docs: add note about multiple configs files to README
1 parent c4fb7b8 commit a987e6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ export default {
761761
}
762762
```
763763

764+
To support backwards-compatibility, monorepo features require multiple _lint-staged_ configuration files present in the git repo. If you still want to run _lint-staged_ in only one of the packages in a monorepo, you can either add an "empty" _lint-staged_ configuration to the root of the repo (so that there's two configs in total), or alternatively run _lint-staged_ with the `--cwd` option pointing to your package directory (for example, `lint-staged --cwd packages/frontend`).
765+
764766
</details>
765767

766768
### Can I lint files outside of the current project folder?

0 commit comments

Comments
 (0)