Skip to content

Commit dde7c82

Browse files
committed
chore: lint
1 parent 35a6a61 commit dde7c82

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/babel.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ export default function transform(opts: TransformOptions): TransformResult {
6565
[transformTypeScriptMetaPlugin],
6666
[proposalDecoratorsPlugin, { legacy: true }],
6767
);
68-
_opts.plugins.push(parameterDecoratorPlugin);
69-
_opts.plugins.push(syntaxImportAssertionsPlugin);
68+
_opts.plugins.push(parameterDecoratorPlugin, syntaxImportAssertionsPlugin);
7069
}
7170

7271
if (opts.babel && Array.isArray(opts.babel.plugins)) {

src/plugins/transform-module/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,8 @@ export default declare((api: PluginAPI, options: Options) => {
293293
`;
294294
}
295295
header.loc = metadata.loc;
296-
297-
headers.push(header);
298296
headers.push(
297+
header,
299298
...buildNamespaceInitStatements(
300299
meta,
301300
metadata,

test/fixtures/data-uri/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ try {
66
require(uri);
77
throw null;
88
} catch (error) {
9-
assert(
9+
assert.ok(
1010
error instanceof Error,
1111
"Expected an error message for sync import of data URL",
1212
);

0 commit comments

Comments
 (0)