Skip to content

Commit d2b019d

Browse files
committed
chore: fix lint errors
1 parent 7e858b6 commit d2b019d

File tree

10 files changed

+11
-10
lines changed

10 files changed

+11
-10
lines changed

playwright/page-objects/article-detail.page-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class ArticleDetailPageObject extends ConduitPageObject {
1616
}
1717

1818
async clickEditArticle(position: keyof typeof this.positionMap = 'banner') {
19-
return this.clickOperationButton(position, 'Edit Article')
19+
return await this.clickOperationButton(position, 'Edit Article')
2020
}
2121

2222
async clickDeleteArticle(position: keyof typeof this.positionMap = 'banner') {

playwright/specs/article.spec.ts-snapshots/popular-tags-in-home-page-chromium-darwin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"test",
88
"dragons",
99
"butt"
10-
]
10+
]

playwright/specs/article.spec.ts-snapshots/popular-tags-in-home-page-firefox-darwin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"test",
88
"dragons",
99
"butt"
10-
]
10+
]

playwright/specs/article.spec.ts-snapshots/popular-tags-in-home-page-webkit-darwin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"test",
88
"dragons",
99
"butt"
10-
]
10+
]

playwright/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
4+
"composite": true,
45
"target": "ESNext",
56
"lib": ["ESNext", "DOM"],
67
"baseUrl": "..",
78
"paths": {
89
"src/*": ["./src/*"],
910
"page-objects/*": ["./playwright/page-objects/*"]
1011
},
11-
"noEmit": true,
12+
"noEmit": false,
1213
"isolatedModules": false
1314
},
1415
"include": [

playwright/utils/prettify.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { prettyPrint } from 'html'
22

33
export function formatHTML(rawHTMLString: string): string {
44
const removeComments = rawHTMLString.replaceAll(/<!--.*?-->/gs, '')
5+
// eslint-disable-next-line camelcase
56
const pretty = prettyPrint(removeComments, { indent_size: 2 })
67
const removeEmptyLines = `${pretty}\n`.replaceAll(/\n{2,}/g, '\n')
78
return removeEmptyLines

playwright/utils/test-decorators.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
/* eslint-disable ts/no-unsafe-function-type,ts/no-unsafe-return */
12
import { test } from '../extends'
23

34
export function step(target: Function, context: ClassMethodDecoratorContext) {
45
return async function replacementMethod(this: Function, ...args: unknown[]) {
56
const className = this.constructor.name
67
const name = `${className.replace(/PageObject$/, '')}.${context.name as string}`
78
return await test.step(name, async () => {
8-
// eslint-disable-next-line ts/no-unsafe-return
99
return await target.call(this, ...args)
1010
})
1111
}
@@ -16,7 +16,6 @@ export function boxedStep(target: Function, context: ClassMethodDecoratorContext
1616
const className = this.constructor.name
1717
const name = `${className.replace(/PageObject$/, '')}.${context.name as string}`
1818
return await test.step(name, async () => {
19-
// eslint-disable-next-line ts/no-unsafe-return
2019
return await target.call(this, ...args)
2120
}, { box: true })
2221
}

src/components/AppPagination.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<ul data-testid="pagination" class="pagination">
2+
<ul class="pagination" data-testid="pagination">
33
<li
44
v-for="pageNumber in pagesCount"
55
:key="pageNumber"

src/components/ArticlesListArticlePreview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div data-testid="article-preview" class="article-preview">
2+
<div class="article-preview" data-testid="article-preview">
33
<div class="article-meta">
44
<AppLink
55
name="profile"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"references": [
2020
{ "path": "./tsconfig.node.json" },
2121
{ "path": "./cypress/e2e/tsconfig.json" },
22-
{ "path": "./playwright.config.ts" }
22+
{ "path": "./playwright/tsconfig.json" }
2323
],
2424
"include": [
2525
"src/**/*.ts",

0 commit comments

Comments
 (0)