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
+10 -10
View File
@@ -1,14 +1,14 @@
export default class Token {
trimLeft: boolean = false
trimRight: boolean = false
type: string = 'notset'
line: number
col: number
raw: string
input: string
file?: string
value: string
constructor (raw: string, input: string, line: number, col: number, file?: string) {
public trimLeft: boolean = false
public trimRight: boolean = false
public type: string = 'notset'
public line: number
public col: number
public raw: string
public input: string
public file?: string
public value: string
public constructor (raw: string, input: string, line: number, col: number, file?: string) {
this.col = col
this.line = line
this.raw = raw