Skip to content

Commit d9e8ce1

Browse files
chore: resolve ESLint not resolving some packages
Co-Authored-By: jirikapoun@jirikapoun.cz
1 parent 149e21c commit d9e8ce1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

eslint.config.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@ import optional from './packages/eslint-config-node/optional.mjs'
33
import style from './packages/eslint-config-node/style.mjs'
44

55
/** @type {Array<import("eslint").Linter.Config>} */
6-
const configs = [{
6+
const config = [{
77
linterOptions: {
88
reportUnusedDisableDirectives: true,
99
},
1010
ignores: [
1111
'node_modules',
1212
'!.*.js',
1313
],
14+
settings: {
15+
'import/resolver': { typescript: {} },
16+
},
1417
},
1518
node,
1619
optional,
1720
style,
18-
{ rules: {
19-
// TODO: Figure out why ESLint cannot resolve the @typescript-eslint packages
20-
'import/no-unresolved': 'off',
21-
} }]
21+
{
22+
rules: {},
23+
}]
2224

23-
export default configs
25+
export default config

0 commit comments

Comments
 (0)