Skip to content

Commit bae618c

Browse files
authored
Add example of how to add import/resolver config to settings
1 parent b08bd3e commit bae618c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,19 @@ A list of file extensions that will be parsed as modules and inspected for
228228
This defaults to `['.js']`, unless you are using the `react` shared config,
229229
in which case it is specified as `['.js', '.jsx']`.
230230

231+
```js
232+
"settings": {
233+
"import/resolver": {
234+
"node": {
235+
"extensions": [
236+
".js",
237+
".jsx"
238+
]
239+
}
240+
}
241+
}
242+
```
243+
231244
Note that this is different from (and likely a subset of) any `import/resolver`
232245
extensions settings, which may include `.json`, `.coffee`, etc. which will still
233246
factor into the `no-unresolved` rule.

0 commit comments

Comments
 (0)