Skip to content

Commit ac9e1ee

Browse files
committed
Update code from merge
1 parent b4bfeba commit ac9e1ee

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

src/transpilation/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function resolvePlugin(
2727
return { error: diagnosticFactories.couldNotResolveFrom(kind, query, basedir) };
2828
}
2929

30-
// tslint:disable-next-line: deprecation
3130
const hasNoRequireHook = require.extensions[".ts"] === undefined;
3231
if (hasNoRequireHook && (resolved.endsWith(".ts") || resolved.endsWith(".tsx"))) {
3332
try {

src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export const createDiagnosticFactoryWithCode = <
77
>(
88
code: number,
99
create: T
10-
) => {
11-
return Object.assign(
10+
) =>
11+
Object.assign(
1212
(...args: Parameters<T>): ts.Diagnostic => ({
1313
file: undefined,
1414
start: undefined,
@@ -20,7 +20,6 @@ export const createDiagnosticFactoryWithCode = <
2020
}),
2121
{ code }
2222
);
23-
};
2423

2524
let serialDiagnosticCodeCounter = 100000;
2625
export const createSerialDiagnosticFactory = <

test/transpile/plugins/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const plugin: tstl.Plugin = {
88
},
99
};
1010

11-
// tslint:disable-next-line: no-default-export
11+
// eslint-disable-next-line import/no-default-export
1212
export default plugin;

test/transpile/plugins/visitor-super.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ const plugin: tstl.Plugin = {
1515
},
1616
};
1717

18-
// tslint:disable-next-line: no-default-export
18+
// eslint-disable-next-line import/no-default-export
1919
export default plugin;

test/transpile/plugins/visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ const plugin: tstl.Plugin = {
77
},
88
};
99

10-
// tslint:disable-next-line: no-default-export
10+
// eslint-disable-next-line import/no-default-export
1111
export default plugin;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// tslint:disable-next-line: no-default-export
1+
// eslint-disable-next-line import/no-default-export
22
export default true;

0 commit comments

Comments
 (0)