mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 14:30:38 -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
|
if (arr.length >= l) ret += o
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ export default class Context {
|
|||||||
this.opts = applyDefault(opts)
|
this.opts = applyDefault(opts)
|
||||||
this.environments = ctx
|
this.environments = ctx
|
||||||
}
|
}
|
||||||
getRegister(key: string, defaultValue = {}) {
|
getRegister (key: string, defaultValue = {}) {
|
||||||
return this.registers[key] = this.registers[key] || defaultValue
|
return (this.registers[key] = this.registers[key] || defaultValue)
|
||||||
}
|
}
|
||||||
setRegister(key: string, value: any) {
|
setRegister (key: string, value: any) {
|
||||||
return this.registers[key] = value
|
return (this.registers[key] = value)
|
||||||
}
|
}
|
||||||
getAll () {
|
getAll () {
|
||||||
return [this.environments, ...this.scopes]
|
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 {
|
export interface FilterImpl {
|
||||||
context: Context
|
context: Context
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user