Skip to content

Commit

Permalink
fix: fs import in ts configs (#24)
Browse files Browse the repository at this point in the history
- Do not require synthetic imports
  • Loading branch information
AriPerkkio authored Jan 7, 2022
1 parent e72eaaa commit 815208b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/run-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {

const CONFIGURATION_TEMPLATE_TS = (pathToUsersConfiguration: string) =>
`// Generated by eslint-remote-tester-run-action
import fs from 'fs';
import * as fs from 'fs';
import type { Config } from 'eslint-remote-tester';
// Load user's eslint-remote-tester.config.ts
Expand Down
2 changes: 1 addition & 1 deletion test/run-tester.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('run-tester', () => {

expect(sanitizeStackTrace(configContents)).toMatchInlineSnapshot(`
"// Generated by eslint-remote-tester-run-action
import fs from 'fs';
import * as fs from 'fs';
import type { Config } from 'eslint-remote-tester';
// Load user's eslint-remote-tester.config.ts
Expand Down

0 comments on commit 815208b

Please sign in to comment.