From bec7c9e185d8c4051f45e99490911672ca66f926 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Fri, 8 May 2020 13:46:00 +0200 Subject: [PATCH] Configure import/no-unresolved linter rule --- xo.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xo.config.js b/xo.config.js index e7a40909d..5f53bb4fc 100644 --- a/xo.config.js +++ b/xo.config.js @@ -8,6 +8,7 @@ module.exports = { 'test-tap/fixture/report/edgecases/ast-syntax-error.js' ], rules: { + 'import/no-unresolved': ['error', {commonjs: true}], 'no-use-extend-native/no-use-extend-native': 'off', '@typescript-eslint/no-var-requires': 'off' }, @@ -47,5 +48,12 @@ module.exports = { 'import/no-extraneous-dependencies': 'off' } } - ] + ], + settings: { + 'import/resolver': { + node: { + extensions: ['.js'] + } + } + } };