Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 8d678ae

Browse files
committed
fix: fix the exports
1 parent 04b4552 commit 8d678ae

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CompositeDisposable, TextEditor } from 'atom';
22
import path from 'path';
33
import { promises } from 'fs';
44
const { stat } = promises;
5-
import WorkerHelper from './workerHelper';
5+
import { WorkerHelper } from './workerHelper';
66
export { config } from './config';
77
import { defaultConfig } from "./config"
88

lib/worker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async function lint(content: string, filePath: string, options: Tslint.ILinterOp
253253
});
254254
}
255255

256-
export default async function TsLintWorker(initialConfig: ConfigSchema) {
256+
async function TsLintWorker(initialConfig: ConfigSchema) {
257257
config.useLocalTslint = initialConfig.useLocalTslint;
258258
config.enableSemanticRules = initialConfig.enableSemanticRules;
259259
config.useGlobalTslint = initialConfig.useGlobalTslint;
@@ -277,3 +277,4 @@ export default async function TsLintWorker(initialConfig: ConfigSchema) {
277277
}
278278
});
279279
}
280+
module.exports = TsLintWorker; // Atom needs old style export

lib/workerHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Task, TextEditor } from 'atom';
22
import type { ConfigSchema } from "./config"
33
import cryptoRandomString from 'crypto-random-string';
44

5-
export default class WorkerHelper {
5+
export class WorkerHelper {
66
workerInstance: Task
77
constructor() {
88
this.workerInstance = null;

0 commit comments

Comments
 (0)