Skip to content

Commit

Permalink
Configure import/no-unresolved linter rule
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed May 8, 2020
1 parent c8f31a3 commit bec7c9e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down Expand Up @@ -47,5 +48,12 @@ module.exports = {
'import/no-extraneous-dependencies': 'off'
}
}
]
],
settings: {
'import/resolver': {
node: {
extensions: ['.js']
}
}
}
};

0 comments on commit bec7c9e

Please sign in to comment.