chore: fix linting, working on #120

This commit is contained in:
harttle
2019-04-17 10:45:02 +08:00
parent 00bc1efe6a
commit 6c5dc336e7
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -25,4 +25,4 @@ export default {
if (arr.length >= l) ret += o
return ret
}
}
}
+4 -4
View File
@@ -14,11 +14,11 @@ export default class Context {
this.opts = applyDefault(opts)
this.environments = ctx
}
getRegister(key: string, defaultValue = {}) {
return this.registers[key] = this.registers[key] || defaultValue
getRegister (key: string, defaultValue = {}) {
return (this.registers[key] = this.registers[key] || defaultValue)
}
setRegister(key: string, value: any) {
return this.registers[key] = value
setRegister (key: string, value: any) {
return (this.registers[key] = value)
}
getAll () {
return [this.environments, ...this.scopes]
+2 -2
View File
@@ -1,3 +1,3 @@
import { FilterImpl } from "./filter-impl";
import { FilterImpl } from './filter-impl'
export type FilterImplOptions = (this: FilterImpl, value: any, ...args: any[]) => any
export type FilterImplOptions = (this: FilterImpl, value: any, ...args: any[]) => any
+2 -2
View File
@@ -1,5 +1,5 @@
import Context from "../../context/context";
import Context from '../../context/context'
export interface FilterImpl {
context: Context
}
}