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
+2 -2
View File
@@ -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 -6
View File
@@ -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()
}
}