Skip to content

Commit b2b6aa2

Browse files
committed
test: Add a test for eslint-community#66
1 parent 9d4119e commit b2b6aa2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/fixtures/no-missing/node_modules/types-only/package.json

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/no-missing/node_modules/types-only/types.d.ts

Whitespace-only changes.

tests/lib/rules/no-missing-import.js

+11
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,17 @@ ruleTester.run("no-missing-import", rule, {
286286
env: { node: true },
287287
},
288288

289+
// type only tests
290+
{
291+
filename: fixture("test.ts"),
292+
parser: path.join(
293+
__dirname,
294+
"../../../node_modules/@typescript-eslint/parser"
295+
),
296+
code: "import type d from 'types-only';",
297+
env: { node: true },
298+
},
299+
289300
// import()
290301
...(DynamicImportSupported
291302
? [

0 commit comments

Comments
 (0)