Skip to content

Commit badce21

Browse files
committed
Updated (nearly) all dependencies
This relates to #1068 [1]. Upgrade of prettier to v3 entails a change in trailing commas, which can be seen in the diff, in addition to eslint, which has made some changes regarding configuration files. [1] #1068
1 parent 9d2e562 commit badce21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+708
-683
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Unreleased
6+
7+
- Updated all dependencies, including esbuild, relates to [#1068](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1068).
8+
59
## v20.1.1
610

711
- Omit outputting empty "then" entries to the command log, relates to [#1214](https://github.com/badeball/cypress-cucumber-preprocessor/discussions/1214).

eslint.config.mjs

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all,
14+
});
15+
16+
export default [
17+
{
18+
ignores: [
19+
"examples/**/*",
20+
"tmp/**/*",
21+
"**/*.js",
22+
"**/*.d.ts",
23+
// Can possibly unignored once TypeScript configs becomes supported? Ref. https://github.com/eslint/eslint/pull/18134.
24+
"eslint.config.mjs",
25+
],
26+
},
27+
...compat.extends(
28+
"eslint:recommended",
29+
"plugin:@typescript-eslint/recommended",
30+
),
31+
{
32+
plugins: {
33+
"@typescript-eslint": typescriptEslint,
34+
},
35+
36+
languageOptions: {
37+
parser: tsParser,
38+
ecmaVersion: 5,
39+
sourceType: "script",
40+
41+
parserOptions: {
42+
project: ["tsconfig.eslint.json"],
43+
},
44+
},
45+
46+
rules: {
47+
"@typescript-eslint/no-unused-vars": [
48+
"warn",
49+
{
50+
argsIgnorePattern: "^_",
51+
varsIgnorePattern: "^_",
52+
caughtErrorsIgnorePattern: "^_",
53+
},
54+
],
55+
56+
"@typescript-eslint/no-explicit-any": 0,
57+
"@typescript-eslint/no-floating-promises": "error",
58+
},
59+
},
60+
];

examples/browserify-ts/cypress.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { preprocessor } from "@badeball/cypress-cucumber-preprocessor/browserify
44

55
async function setupNodeEvents(
66
on: Cypress.PluginEvents,
7-
config: Cypress.PluginConfigOptions
7+
config: Cypress.PluginConfigOptions,
88
): Promise<Cypress.PluginConfigOptions> {
99
// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
1010
await addCucumberPreprocessorPlugin(on, config);
@@ -13,7 +13,7 @@ async function setupNodeEvents(
1313
"file:preprocessor",
1414
preprocessor(config, {
1515
typescript: require.resolve("typescript"),
16-
})
16+
}),
1717
);
1818

1919
// Make sure to return the config object as it might have been modified by the plugin.

examples/browserify-ts/cypress/e2e/duckduckgo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Then("I should see a search bar", () => {
99
.should("have.attr", "placeholder")
1010
.and(
1111
"match",
12-
/Search the web without being tracked|Search without being tracked/
12+
/Search the web without being tracked|Search without being tracked/,
1313
);
1414

1515
assert.deepEqual({}, {});

examples/ct-webpack-react-ts/cypress.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { devServer } from "@cypress/webpack-dev-server";
44
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
55

66
const webpackConfig = (
7-
cypressConfig: Cypress.PluginConfigOptions
7+
cypressConfig: Cypress.PluginConfigOptions,
88
): Webpack.Configuration => {
99
return {
1010
resolve: {

examples/esbuild-ts/cypress.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createEsbuildPlugin } from "@badeball/cypress-cucumber-preprocessor/esb
55

66
async function setupNodeEvents(
77
on: Cypress.PluginEvents,
8-
config: Cypress.PluginConfigOptions
8+
config: Cypress.PluginConfigOptions,
99
): Promise<Cypress.PluginConfigOptions> {
1010
// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
1111
await addCucumberPreprocessorPlugin(on, config);
@@ -14,7 +14,7 @@ async function setupNodeEvents(
1414
"file:preprocessor",
1515
createBundler({
1616
plugins: [createEsbuildPlugin(config)],
17-
})
17+
}),
1818
);
1919

2020
// Make sure to return the config object as it might have been modified by the plugin.

examples/esbuild-ts/cypress/e2e/duckduckgo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Then("I should see a search bar", () => {
99
.should("have.attr", "placeholder")
1010
.and(
1111
"match",
12-
/Search the web without being tracked|Search without being tracked/
12+
/Search the web without being tracked|Search without being tracked/,
1313
);
1414

1515
assert.deepEqual({}, {});

examples/type-module/cypress.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createEsbuildPlugin } from "@badeball/cypress-cucumber-preprocessor/esb
55

66
async function setupNodeEvents(
77
on: Cypress.PluginEvents,
8-
config: Cypress.PluginConfigOptions
8+
config: Cypress.PluginConfigOptions,
99
): Promise<Cypress.PluginConfigOptions> {
1010
// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
1111
await addCucumberPreprocessorPlugin(on, config);
@@ -14,7 +14,7 @@ async function setupNodeEvents(
1414
"file:preprocessor",
1515
createBundler({
1616
plugins: [createEsbuildPlugin(config)],
17-
})
17+
}),
1818
);
1919

2020
// Make sure to return the config object as it might have been modified by the plugin.

examples/type-module/cypress/e2e/duckduckgo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Then("I should see a search bar", () => {
99
.should("have.attr", "placeholder")
1010
.and(
1111
"match",
12-
/Search the web without being tracked|Search without being tracked/
12+
/Search the web without being tracked|Search without being tracked/,
1313
);
1414

1515
assert.deepEqual({}, {});

examples/webpack-ts/cypress.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-prepro
44

55
async function setupNodeEvents(
66
on: Cypress.PluginEvents,
7-
config: Cypress.PluginConfigOptions
7+
config: Cypress.PluginConfigOptions,
88
): Promise<Cypress.PluginConfigOptions> {
99
// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
1010
await addCucumberPreprocessorPlugin(on, config);
@@ -39,7 +39,7 @@ async function setupNodeEvents(
3939
],
4040
},
4141
},
42-
})
42+
}),
4343
);
4444

4545
// Make sure to return the config object as it might have been modified by the plugin.

examples/webpack-ts/cypress/e2e/duckduckgo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Then("I should see a search bar", () => {
99
.should("have.attr", "placeholder")
1010
.and(
1111
"match",
12-
/Search the web without being tracked|Search without being tracked/
12+
/Search the web without being tracked|Search without being tracked/,
1313
);
1414

1515
assert.deepEqual({}, {});

0 commit comments

Comments
 (0)