We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25888e commit a15a2f2Copy full SHA for a15a2f2
1 file changed
docs/rules/no-missing-import.md
@@ -62,6 +62,26 @@ Please see the shared settings documentation for more information.
62
This can be configured in the rule options or as a shared setting [`settings.typescriptExtensionMap`](../shared-settings.md#typescriptextensionmap).
63
Please see the shared settings documentation for more information.
64
65
+### ignoreTypeImport
66
+
67
+If using typescript, you may want to ignore type imports.
68
69
+```json
70
+{
71
+ "rules": {
72
+ "n/no-missing-import": ["error", {
73
+ "ignoreTypeImport": true
74
+ }]
75
+ }
76
+}
77
+```
78
79
+In this way, the following code will not be reported:
80
81
+```ts
82
+import type { TypeOnly } from "@types/only-types";
83
84
85
## 🔎 Implementation
86
87
- [Rule source](../../lib/rules/no-missing-import.js)
0 commit comments