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
+2 -2
View File
@@ -1,12 +1,12 @@
import Token from './token'
export default class HTMLToken extends Token {
constructor (str: string, input: string, line: number, col: number, file?: string) {
public constructor (str: string, input: string, line: number, col: number, file?: string) {
super(str, input, line, col, file)
this.type = 'html'
this.value = str
}
static is (token: Token): token is HTMLToken {
public static is (token: Token): token is HTMLToken {
return token.type === 'html'
}
}