@hs-web-team/eslint-config-node 3.2.0-next.2 → 3.2.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress.config.js +2 -1
- package/package.json +5 -3
package/cypress.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const yaml = require('js-yaml');
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
|
+
const createBundler = require('@bahmutov/cypress-esbuild-preprocessor');
|
|
4
5
|
const { addCucumberPreprocessorPlugin } = require('@badeball/cypress-cucumber-preprocessor');
|
|
5
6
|
const { createEsbuildPlugin } = require('@badeball/cypress-cucumber-preprocessor/esbuild');
|
|
6
7
|
|
|
@@ -91,7 +92,7 @@ async function setupNodeEvents(on, config) {
|
|
|
91
92
|
// Use esbuild for fast TypeScript and feature file processing
|
|
92
93
|
on(
|
|
93
94
|
'file:preprocessor',
|
|
94
|
-
createEsbuildPlugin(config),
|
|
95
|
+
createBundler({ plugins: [createEsbuildPlugin(config)] }),
|
|
95
96
|
);
|
|
96
97
|
|
|
97
98
|
return config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hs-web-team/eslint-config-node",
|
|
3
|
-
"version": "3.2.0-next.
|
|
3
|
+
"version": "3.2.0-next.3",
|
|
4
4
|
"description": "HubSpot Marketing WebTeam shared configurations for ESLint, Prettier, Stylelint, and Cypress",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"./browser": "./browser.js",
|
|
10
10
|
"./.prettierrc.json": "./.prettierrc.json",
|
|
11
11
|
"./.stylelintrc.json": "./.stylelintrc.json",
|
|
12
|
-
"./cypress.config.js": "./cypress.config.js"
|
|
12
|
+
"./cypress.config.js": "./cypress.config.js",
|
|
13
|
+
"./cypress.config.ts": "./cypress.config.ts"
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
15
16
|
"lint": "npx eslint -c ./index.js *.js --fix",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
},
|
|
41
42
|
"homepage": "https://github.com/HubSpotWebTeam/wt-eslint-node#readme",
|
|
42
43
|
"dependencies": {
|
|
44
|
+
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.3",
|
|
43
45
|
"@eslint/eslintrc": "^3.3.3",
|
|
44
46
|
"@eslint/js": "^9.39.1",
|
|
45
47
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
},
|
|
57
59
|
"peerDependencies": {
|
|
58
60
|
"@badeball/cypress-cucumber-preprocessor": "^24.0.0",
|
|
59
|
-
"cypress": "^15.
|
|
61
|
+
"cypress": "^15.0.0",
|
|
60
62
|
"esbuild": "^0.27.2",
|
|
61
63
|
"js-yaml": "^4.1.1",
|
|
62
64
|
"stylelint": "^17.1.1",
|