@@ -177,7 +177,7 @@ export function getTemplateTransformFunctions(ts: T_TypeScript) {
177177 return setTextRange (
178178 ts . createPropertyAssignment (
179179 setTextRange ( ts . createIdentifier ( attr . key . name ) , attr . key ) ,
180- attr . value ? setTextRange ( ts . createLiteral ( attr . value . value ) , attr . value ) : ts . createLiteral ( ' true' )
180+ attr . value ? setTextRange ( ts . createLiteral ( attr . value . value ) , attr . value ) : ts . createLiteral ( true )
181181 ) ,
182182 attr
183183 ) ;
@@ -187,7 +187,7 @@ export function getTemplateTransformFunctions(ts: T_TypeScript) {
187187 const exp =
188188 vBind . value && vBind . value . expression
189189 ? parseExpression ( vBind . value . expression as AST . ESLintExpression , code , scope )
190- : ts . createLiteral ( ' true' ) ;
190+ : ts . createLiteral ( true ) ;
191191
192192 return directiveToObjectElement ( vBind , exp , code , scope ) ;
193193 }
@@ -329,7 +329,7 @@ export function getTemplateTransformFunctions(ts: T_TypeScript) {
329329 function transformStatement ( statement : AST . ESLintStatement , code : string , scope : string [ ] ) : ts . Statement {
330330 if ( statement . type !== 'ExpressionStatement' ) {
331331 console . error ( 'Unexpected statement type:' , statement . type ) ;
332- return ts . createStatement ( ts . createLiteral ( '"" ' ) ) ;
332+ return ts . createStatement ( ts . createLiteral ( '' ) ) ;
333333 }
334334
335335 return setTextRange ( ts . createStatement ( parseExpression ( statement . expression , code , scope ) ) , statement ) ;
@@ -365,7 +365,7 @@ export function getTemplateTransformFunctions(ts: T_TypeScript) {
365365
366366 if ( ! statement || ! ts . isExpressionStatement ( statement ) ) {
367367 console . error ( 'Unexpected statement kind:' , statement . kind ) ;
368- return ts . createLiteral ( '"" ' ) ;
368+ return ts . createLiteral ( '' ) ;
369369 }
370370
371371 ts . forEachChild ( statement , function next ( node ) {
0 commit comments