Skip to content

Commit bec7c9e

Browse files
committed
Configure import/no-unresolved linter rule
1 parent c8f31a3 commit bec7c9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

xo.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'test-tap/fixture/report/edgecases/ast-syntax-error.js'
99
],
1010
rules: {
11+
'import/no-unresolved': ['error', {commonjs: true}],
1112
'no-use-extend-native/no-use-extend-native': 'off',
1213
'@typescript-eslint/no-var-requires': 'off'
1314
},
@@ -47,5 +48,12 @@ module.exports = {
4748
'import/no-extraneous-dependencies': 'off'
4849
}
4950
}
50-
]
51+
],
52+
settings: {
53+
'import/resolver': {
54+
node: {
55+
extensions: ['.js']
56+
}
57+
}
58+
}
5159
};

0 commit comments

Comments
 (0)