Skip to content

Commit

Permalink
added docs to describe new settings['import/paths'] behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hargrove committed Feb 7, 2018
1 parent 4ce8d72 commit 7e6c720
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,18 @@ settings:
[`eslint_d`]: https://www.npmjs.com/package/eslint_d
[`eslint-loader`]: https://www.npmjs.com/package/eslint-loader

#### `import/paths`

Settings for `package.json` lookup paths in order to include their defined dependencies in addition to the next-immediate `package.json` relative to the linted file. For example, the [`no-extraneous-dependencies`].

This is useful in scenarios where your workspace includes several hierarchical `package.json` files. For example, a [lerna](https://github.com/lerna/lerna) monorepo where you've hoisted all your `devDependencies` to the `package.json` at the root of the monorepo.

```yaml
# .eslintrc.yml
settings:
import/paths: ['.', 'packages/my-dev-utils']
```

## SublimeLinter-eslint

SublimeLinter-eslint introduced a change to support `.eslintignore` files
Expand Down

0 comments on commit 7e6c720

Please sign in to comment.