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.
no-extraneous-dependencies
1 parent 6f12316 commit 6be042bCopy full SHA for 6be042b
tests/src/rules/no-extraneous-dependencies.js
@@ -475,5 +475,14 @@ typescriptRuleTester.run('no-extraneous-dependencies typescript type imports', r
475
message: `'not-a-dependency' should be listed in the project's dependencies. Run 'npm i -S not-a-dependency' to add it`,
476
}],
477
}),
478
+ test({
479
+ code: `import type { Foo } from 'not-a-dependency'`,
480
+ options: [{ includeTypes: true }],
481
+ filename: testFilePath('./no-unused-modules/typescript/file-ts-a.ts'),
482
+ parser: parsers.BABEL_OLD,
483
+ errors: [{
484
+ message: `'not-a-dependency' should be listed in the project's dependencies. Run 'npm i -S not-a-dependency' to add it`,
485
+ }],
486
+ }),
487
],
488
});
0 commit comments