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
+1 -1
View File
@@ -2,7 +2,7 @@ import { isNil, isString, toValue } from '../util/underscore'
import { EmptyDrop } from '../drop/empty-drop'
export class BlankDrop extends EmptyDrop {
equals (value: any) {
public equals (value: any) {
if (value === false) return true
if (isNil(toValue(value))) return true
if (isString(value)) return /^\s*$/.test(value)