Skip to content

Commit

Permalink
docs: add description of resolution order of parserOptions.project (#…
Browse files Browse the repository at this point in the history
…5682)

* docs: add resolution order of parserOptions.project

* Update docs/linting/typed-linting/MONOREPOS.md

Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>

Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
  • Loading branch information
kazizi55 and JoshuaKGoldberg committed Sep 26, 2022
1 parent 23b92c9 commit 25d035b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/linting/typed-linting/MONOREPOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Be sure to update your `.eslintrc.js` to point at this new config file.

The `parserOptions.project` option introduced in [Linting with Type Information](../TYPED_LINTING.md) accepts an array of relative paths.
Paths may be provided as [Node globs](https://github.com/isaacs/node-glob/blob/f5a57d3d6e19b324522a3fa5bdd5075fd1aa79d1/README.md#glob-primer).
For each file being linted, the first matching project path will be used as its backing TSConfig.

```js title=".eslintrc.js"
module.exports = {
Expand Down

0 comments on commit 25d035b

Please sign in to comment.