Skip to content

Commit f5d5ed3

Browse files
committed
Fix linting issues
1 parent 976312c commit f5d5ed3

File tree

1 file changed

+4
-3
lines changed
  • packages/app/src/sandbox/eval/transpilers/babel/convert-esmodule

1 file changed

+4
-3
lines changed

packages/app/src/sandbox/eval/transpilers/babel/convert-esmodule/generator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { Identifier } from 'meriyah/dist/estree';
55
/**
66
* Add support for next syntax
77
*/
8-
export const customGenerator = Object.assign({}, astring.baseGenerator, {
9-
FieldDefinition: function(
8+
export const customGenerator = {
9+
...astring.baseGenerator,
10+
FieldDefinition(
1011
node: meriyah.ESTree.FieldDefinition,
1112
state: { write(s: string): void }
1213
) {
@@ -19,4 +20,4 @@ export const customGenerator = Object.assign({}, astring.baseGenerator, {
1920
state.write(' = ');
2021
this[node.value.type](node.value, state);
2122
},
22-
});
23+
};

0 commit comments

Comments
 (0)