From bae618c197fea4383419865f853900bf0b82afab Mon Sep 17 00:00:00 2001 From: Olena Sovyn Date: Thu, 25 Jan 2018 23:05:05 +0000 Subject: [PATCH] Add example of how to add import/resolver config to settings --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 7280a57cf..ae6b92c04 100644 --- a/README.md +++ b/README.md @@ -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.