mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
style: introduce @typescript-eslint/recommended
This commit is contained in:
@@ -85,7 +85,7 @@ describe('tags/include', function () {
|
||||
})
|
||||
it('should support include: with as Liquid Drop', async function () {
|
||||
class ColorDrop extends Liquid.Types.Drop {
|
||||
valueOf (): string {
|
||||
public valueOf (): string {
|
||||
return 'red!'
|
||||
}
|
||||
}
|
||||
@@ -98,7 +98,7 @@ describe('tags/include', function () {
|
||||
})
|
||||
it('should support include: with passed as Liquid Drop', async function () {
|
||||
class ColorDrop extends Liquid.Types.Drop {
|
||||
valueOf (): string {
|
||||
public valueOf (): string {
|
||||
return 'red!'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,22 +6,22 @@ describe('drop/drop', function () {
|
||||
before(() => (liquid = new Liquid()))
|
||||
|
||||
class CustomDrop extends Liquid.Types.Drop {
|
||||
name: string = 'NAME'
|
||||
getName () {
|
||||
private name: string = 'NAME'
|
||||
public getName () {
|
||||
return 'GET NAME'
|
||||
}
|
||||
}
|
||||
class CustomDropWithMethodMissing extends CustomDrop {
|
||||
liquidMethodMissing (key: string) {
|
||||
public liquidMethodMissing (key: string) {
|
||||
return key.toUpperCase()
|
||||
}
|
||||
}
|
||||
class PromiseDrop extends Liquid.Types.Drop {
|
||||
name = Promise.resolve('NAME')
|
||||
async getName () {
|
||||
private name = Promise.resolve('NAME')
|
||||
public async getName () {
|
||||
return 'GET NAME'
|
||||
}
|
||||
async liquidMethodMissing (key: string) {
|
||||
public async liquidMethodMissing (key: string) {
|
||||
return key.toUpperCase()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user