Skip to content

Commit

Permalink
docs: add note about multiple configs files to README
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Nov 26, 2022
1 parent c4fb7b8 commit a987e6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ export default {
}
```

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`).

</details>

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

0 comments on commit a987e6a

Please sign in to comment.