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

Commit

Permalink
fix: fix the exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 04b4552 commit 8d678ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CompositeDisposable, TextEditor } from 'atom';
import path from 'path';
import { promises } from 'fs';
const { stat } = promises;
import WorkerHelper from './workerHelper';
import { WorkerHelper } from './workerHelper';
export { config } from './config';
import { defaultConfig } from "./config"

Expand Down
3 changes: 2 additions & 1 deletion lib/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async function lint(content: string, filePath: string, options: Tslint.ILinterOp
});
}

export default async function TsLintWorker(initialConfig: ConfigSchema) {
async function TsLintWorker(initialConfig: ConfigSchema) {
config.useLocalTslint = initialConfig.useLocalTslint;
config.enableSemanticRules = initialConfig.enableSemanticRules;
config.useGlobalTslint = initialConfig.useGlobalTslint;
Expand All @@ -277,3 +277,4 @@ export default async function TsLintWorker(initialConfig: ConfigSchema) {
}
});
}
module.exports = TsLintWorker; // Atom needs old style export
2 changes: 1 addition & 1 deletion lib/workerHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Task, TextEditor } from 'atom';
import type { ConfigSchema } from "./config"
import cryptoRandomString from 'crypto-random-string';

export default class WorkerHelper {
export class WorkerHelper {
workerInstance: Task
constructor() {
this.workerInstance = null;
Expand Down

0 comments on commit 8d678ae

Please sign in to comment.