run prettier on code
This commit is contained in:
		| @@ -74,7 +74,7 @@ export class ExtractTask implements TaskInterface { | |||||||
| 			try { | 			try { | ||||||
| 				let event = 'CREATED'; | 				let event = 'CREATED'; | ||||||
| 				if (fs.existsSync(outputPath)) { | 				if (fs.existsSync(outputPath)) { | ||||||
| 					this.options.replace ? event = 'REPLACED' : event = 'MERGED'; | 					this.options.replace ? (event = 'REPLACED') : (event = 'MERGED'); | ||||||
| 				} | 				} | ||||||
| 				this.save(outputPath, final); | 				this.save(outputPath, final); | ||||||
| 				this.out(`%s %s`, dim(`- ${outputPath}`), green(`[${event}]`)); | 				this.out(`%s %s`, dim(`- ${outputPath}`), green(`[${event}]`)); | ||||||
|   | |||||||
| @@ -135,7 +135,7 @@ export class PipeParser implements ParserInterface { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	protected getTranslatablesFromAsts(asts: AST[]): BindingPipe[] { | 	protected getTranslatablesFromAsts(asts: AST[]): BindingPipe[] { | ||||||
| 		return this.flatten(asts.map(ast => this.getTranslatablesFromAst(ast))); | 		return this.flatten(asts.map((ast) => this.getTranslatablesFromAst(ast))); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	protected flatten<T extends AST>(array: T[][]): T[] { | 	protected flatten<T extends AST>(array: T[][]): T[] { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user