mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
chore: fix linting, working on #120
This commit is contained in:
@@ -25,4 +25,4 @@ export default {
|
||||
if (arr.length >= l) ret += o
|
||||
return ret
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Context from "../../context/context";
|
||||
import Context from '../../context/context'
|
||||
|
||||
export interface FilterImpl {
|
||||
context: Context
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user