You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -157,19 +157,24 @@ rules:
157
157
158
158
You may use the following shortcut or assemble your own config using the granular settings described below.
159
159
160
-
Make sure you have installed [`@typescript-eslint/parser`] which is used in the following configuration. Unfortunately NPM does not allow to list optional peer dependencies.
160
+
Make sure you have installed [`@typescript-eslint/parser`]and [`eslint-import-resolver-typescript`]which are used in the following configuration.
161
161
162
162
```yaml
163
163
extends:
164
164
- eslint:recommended
165
165
- plugin:import/recommended
166
-
- plugin:import/typescript # this line does the trick
166
+
# the following lines do the trick
167
+
- plugin:import/typescript
168
+
settings:
169
+
import/resolver:
170
+
# You will also need to install and configure the TypeScript resolver
171
+
# See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
0 commit comments