Skip to content

Commit

Permalink
update import file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansley committed Dec 3, 2024
1 parent 9867673 commit 20fdd15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/typescript.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// typescript.spec.ts

// it's ok to import test files from test code
import testHello from './typescript.test';
import testHello from './typescript.test.ts';
testHello();

// linting error is not reported because unicorn/no-anonymous-default-export is disabled
Expand Down
2 changes: 1 addition & 1 deletion src/typescript.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'typescript';
// eslint-disable-next-line n/no-restricted-import
import 'fclone';

import './typescript';
import './typescript.ts';

function testHello(_?: string): number {
return 123 + 0xf;
Expand Down
2 changes: 1 addition & 1 deletion src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { format } from 'node:url';
assert.ok(format !== undefined);

// eslint-disable-next-line @checkdigit/no-test-import
import testHello from './typescript.test';
import testHello from './typescript.test.ts';
testHello();

// eslint-disable-next-line n/no-sync
Expand Down

0 comments on commit 20fdd15

Please sign in to comment.