style: introduce @typescript-eslint/recommended

This commit is contained in:
harttle
2019-07-06 14:33:34 +08:00
parent e6f5f1cd85
commit 88c89fe3b3
48 changed files with 260 additions and 235 deletions
+3 -3
View File
@@ -3,12 +3,12 @@ import ITemplate from '../template/itemplate'
import HTMLToken from '../parser/html-token'
export default class extends Template<HTMLToken> implements ITemplate {
str: string
constructor (token: HTMLToken) {
private str: string
public constructor (token: HTMLToken) {
super(token)
this.str = token.value
}
async render (): Promise<string> {
public async render (): Promise<string> {
return this.str
}
}