Skip to content

Commit

Permalink
Merge pull request #1008 from Kiwka/patch-1
Browse files Browse the repository at this point in the history
[documentation] add example of how to add import/resolver config to settings
  • Loading branch information
ljharb authored Jan 26, 2018
2 parents b08bd3e + bae618c commit 7852cd7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ A list of file extensions that will be parsed as modules and inspected for
This defaults to `['.js']`, unless you are using the `react` shared config,
in which case it is specified as `['.js', '.jsx']`.

```js
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
}
}
```

Note that this is different from (and likely a subset of) any `import/resolver`
extensions settings, which may include `.json`, `.coffee`, etc. which will still
factor into the `no-unresolved` rule.
Expand Down

0 comments on commit 7852cd7

Please sign in to comment.