@hs-web-team/eslint-config-node 3.2.0-next.2 → 3.2.0-next.4
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/CLAUDE.md
CHANGED
|
@@ -83,7 +83,7 @@ When testing changes to this package in downstream projects, you'll typically:
|
|
|
83
83
|
- Documentation: `examples/stylelint-usage.md`
|
|
84
84
|
|
|
85
85
|
### Cypress Configuration
|
|
86
|
-
- **`cypress.config.
|
|
86
|
+
- **`cypress.config.cjs`**: Shared Cypress configuration for E2E testing
|
|
87
87
|
- Uses CommonJS (`require`) syntax
|
|
88
88
|
- Core settings:
|
|
89
89
|
- Disables Chrome web security for cross-origin testing
|
|
@@ -111,7 +111,7 @@ When testing changes to this package in downstream projects, you'll typically:
|
|
|
111
111
|
- Browser export (`./browser`): `browser.js` - Browser/React ESLint configuration
|
|
112
112
|
- Prettier export (`./.prettierrc.json`): `.prettierrc.json` - Prettier configuration
|
|
113
113
|
- Stylelint export (`./.stylelintrc.json`): `.stylelintrc.json` - Stylelint configuration
|
|
114
|
-
- Cypress export (`./cypress.config`): `cypress.config.
|
|
114
|
+
- Cypress export (`./cypress.config`): `cypress.config.cjs` - Cypress configuration
|
|
115
115
|
- **Binary command**: `add-prettier` maps to `bin/add-prettier-scripts.js`
|
|
116
116
|
|
|
117
117
|
### Migration Context
|
|
@@ -135,7 +135,7 @@ This package is currently on v3, which uses ESLint 9's flat config format. The p
|
|
|
135
135
|
- Cypress: Import and spread in `cypress.config.js`
|
|
136
136
|
- Mixed module systems:
|
|
137
137
|
- Main package is ESM (`index.js`, `browser.js`)
|
|
138
|
-
- Utility scripts use CommonJS (`bin/add-prettier-scripts.js`, `cypress.config.
|
|
138
|
+
- Utility scripts use CommonJS (`bin/add-prettier-scripts.js`, `cypress.config.cjs`)
|
|
139
139
|
- CI runs on Node 22 and 24 (see `.github/workflows/pr.yml`)
|
|
140
140
|
- No automated tests currently (`npm test` will fail with "Error: no test specified")
|
|
141
141
|
- Detailed documentation available in `examples/`:
|
|
@@ -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.4",
|
|
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,7 @@
|
|
|
9
9
|
"./browser": "./browser.js",
|
|
10
10
|
"./.prettierrc.json": "./.prettierrc.json",
|
|
11
11
|
"./.stylelintrc.json": "./.stylelintrc.json",
|
|
12
|
-
"./cypress.config
|
|
12
|
+
"./cypress.config": "./cypress.config.cjs"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"lint": "npx eslint -c ./index.js *.js --fix",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/HubSpotWebTeam/wt-eslint-node#readme",
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.3",
|
|
43
44
|
"@eslint/eslintrc": "^3.3.3",
|
|
44
45
|
"@eslint/js": "^9.39.1",
|
|
45
46
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@badeball/cypress-cucumber-preprocessor": "^24.0.0",
|
|
59
|
-
"cypress": "^15.
|
|
60
|
+
"cypress": "^15.0.0",
|
|
60
61
|
"esbuild": "^0.27.2",
|
|
61
62
|
"js-yaml": "^4.1.1",
|
|
62
63
|
"stylelint": "^17.1.1",
|