Skip to content

Commit 33121aa

Browse files
committed
Fix readme
1 parent bb90415 commit 33121aa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,27 @@ yarn add -D eslint-plugin-import @helljs/eslint-import-resolver-x
6161

6262
## Configuration
6363

64+
If you are using `eslint-plugin-import-x@>=4.5.0`, you can use import/require to reference `eslint-import-resolver-x` directly in your ESLint flat config:
65+
66+
```js
67+
// eslint.config.js
68+
const {
69+
createImportResolver,
70+
} = require('eslint-import-resolver-x')
71+
72+
module.exports = [{
73+
settings: {
74+
"import/resolver-x": [
75+
createImportResolver({
76+
alwaysTryTypes: true,
77+
project: "path/to/folder",
78+
// ...
79+
}),
80+
];
81+
}
82+
}]
83+
```
84+
6485
Add the following to your `.eslintrc` config:
6586

6687
### TypeScript

0 commit comments

Comments
 (0)