Skip to content

Commit 61c82d8

Browse files
authored
fix lint warnings (via #1457)
1 parent 690130a commit 61c82d8

10 files changed

Lines changed: 12 additions & 14 deletions

File tree

packages/allure-codeceptjs/test/samples/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MyHelper extends Helper {
99
await Promise.resolve();
1010
}
1111

12-
async parameters(page, element) {
12+
async parameters(_page, _element) {
1313
await Promise.resolve();
1414
}
1515

packages/allure-cucumberjs/test/samples/support/dataTable.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { Given, When, Then } = require("@cucumber/cucumber");
22

3-
Given(/^a table step$/, (table) => {});
3+
Given(/^a table step$/, (_table) => {});
44

55
When(/^I add (\d+) to (\d+)$/, (a, b) => {
66
console.log(a, b);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { Given, When, Then } = require("@cucumber/cucumber");
22

3-
Given(/^a table$/, (table) => {});
3+
Given(/^a table$/, (_table) => {});
44

5-
When(/^I add (\d+) to (\d+)$/, (a, b) => {});
5+
When(/^I add (\d+) to (\d+)$/, (_a, _b) => {});
66

7-
Then(/^result is (\d+)$/, (c) => {});
7+
Then(/^result is (\d+)$/, (_c) => {});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const { Given } = require("@cucumber/cucumber");
22

3-
Given("The sum of the numbers {int} and {int} must be equal to {int}", (a, b, c) => {});
3+
Given("The sum of the numbers {int} and {int} must be equal to {int}", (_a, _b, _c) => {});

packages/allure-cucumberjs/test/samples/support/runtime/legacy/description.cjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const { setWorldConstructor, Given } = require("@cucumber/cucumber");
2-
const { CucumberAllureWorld } = require("allure-cucumberjs");
1+
const { Given } = require("@cucumber/cucumber");
32

43
Given("a step", () => {});
54

packages/allure-cypress/src/browser/runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ class AllureCypressTestRuntime implements TestRuntime {
308308
if (!cyExists || !cyTaskExists) {
309309
return true;
310310
}
311-
} catch (error) {
311+
} catch {
312312
return true;
313313
}
314314

315315
return false;
316-
} catch (error) {
316+
} catch {
317317
return true;
318318
}
319319
}

packages/allure-jest/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const getTestPath = (test: Circus.TestEntry | Circus.DescribeBlock): stri
3131
/**
3232
* Returns starndartized test name what can be used as test Id
3333
*
34-
* @doc https://github.com/jestjs/jest/blob/25a8785584c9d54a05887001ee7f498d489a5441/packages/jest-circus/src/utils.ts#L410
34+
* @see https://github.com/jestjs/jest/blob/25a8785584c9d54a05887001ee7f498d489a5441/packages/jest-circus/src/utils.ts#L410
3535
* @param path Path memebers
3636
* @returns
3737
*/

packages/allure-js-commons/src/sdk/reporter/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const isUrl = (potentialUrl: string) => {
192192
try {
193193
new URL(potentialUrl);
194194
return true;
195-
} catch (e) {
195+
} catch {
196196
return false;
197197
}
198198
};

packages/allure-mocha/src/extraReporters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const loadReporterModule = (moduleOrCtor: ReporterModuleOrCtor) => {
129129
const getReporterModulePath = (module: string) => {
130130
try {
131131
return localRequire.resolve(module);
132-
} catch (e) {}
132+
} catch {}
133133

134134
try {
135135
return path.resolve(module);

packages/allure-playwright/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
getLanguageLabel,
4141
getPackageLabel,
4242
getThreadLabel,
43-
getWorstTestStepResult,
4443
md5,
4544
parseTestPlan,
4645
randomUuid,

0 commit comments

Comments
 (0)