chore(lint): require semicolons
Relying on ASI (automatic semicolon insertion) is allowed in TypeScript because JavaScript allows it. However, when we run clang-format it doesn’t understand that these statements are terminated with a newline and changes the indentation, in bad cases even breaking the code. Fixes #817
This commit is contained in:
@ -102,7 +102,7 @@ export class Serializer {
|
||||
|
||||
class ASTWithSourceSerializer {
|
||||
static serialize(tree: ASTWithSource): Object {
|
||||
return { 'input': tree.source, 'location': tree.location }
|
||||
return { 'input': tree.source, 'location': tree.location };
|
||||
}
|
||||
|
||||
static deserialize(obj: any, data: string): AST {
|
||||
@ -186,7 +186,7 @@ class ElementBinderSerializer {
|
||||
'eventBindings': Serializer.serialize(binder.eventBindings, EventBinding),
|
||||
'textBindings': Serializer.serialize(binder.textBindings, ASTWithSource),
|
||||
'readAttributes': Serializer.mapToObject(binder.readAttributes)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static deserialize(obj): ElementBinder {
|
||||
@ -211,7 +211,7 @@ class ProtoViewDtoSerializer {
|
||||
return {
|
||||
'render': null, 'elementBinders': Serializer.serialize(view.elementBinders, ElementBinder),
|
||||
'variableBindings': Serializer.mapToObject(view.variableBindings), 'type': view.type
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static deserialize(obj): ProtoViewDto {
|
||||
|
Reference in New Issue
Block a user