Skip to content

Commit

Permalink
Add example of how to add import/resolver config to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiwka authored Jan 25, 2018
1 parent b08bd3e commit bae618c
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 bae618c

Please sign in to comment.