Skip to content

Feature/add cypress configuration#26

Merged
darkmavis1980 merged 31 commits intomainfrom
feature/add-cypress-configuration
Mar 3, 2026
Merged

Feature/add cypress configuration#26
darkmavis1980 merged 31 commits intomainfrom
feature/add-cypress-configuration

Conversation

@darkmavis1980
Copy link
Contributor

@darkmavis1980 darkmavis1980 commented Jan 29, 2026

Description

This PR adds comprehensive Stylelint and Cypress E2E testing support to the @hs-web-team/eslint-config-node package.
The Cypress configuration has been migrated from Webpack to esbuild for improved performance and native TypeScript support. Additionally, the Cypress configuration targets Cypress 15, supports both JavaScript and TypeScript consumer projects natively via esbuild (no additional loaders or configuration required), and bundles all preprocessor dependencies so consumers only need to install cypress itself.

Currently, the baseline cypress config lives in the eslint-config-browser package and the DX e2e test suites consume this config file. However, this package will be deprecated in the future which is why we are creating the config file in this package with the final goal of migrating all test suites to use this config.

Summary of Changes 📋

Stylelint Support

Cypress E2E Testing

  • Added cypress.config.js with shared Cypress configuration
  • Migrated from Webpack to esbuild for faster bundling and native TypeScript support
  • Specify Cypress 15 and corresponding compatible test dependencies
  • Includes Cucumber preprocessor setup with esbuild integration
  • HubSpot CMS-specific utilities (getDevBaseUrl(), getBaseUrls())
  • Created detailed documentation in examples/cypress-usage.md

Documentation

  • Updated README.md with Stylelint and Cypress setup instructions
  • Updated CLAUDE.md with architecture details and usage patterns

Dependencies

  • Added peer dependencies for Cypress and Stylelint
  • Upgraded globals and typescript-eslint packages
  • Added esbuild-related packages for Cypress preprocessing

Files Changed

  • .stylelintrc.json - New Stylelint configuration
  • cypress.config.js - New Cypress configuration with esbuild
  • examples/stylelint-usage.md - New Stylelint documentation
  • examples/cypress-usage.md - New Cypress documentation
  • CLAUDE.md - Updated architecture documentation
  • README.md - Updated setup instructions
  • package.json - Added peer dependencies and updated dependencies
  • package-lock.json - Dependency lock file updates

Testing

  • Tested Stylelint configuration in a downstream project
  • Tested Cypress configuration in a downstream project
  • Verified esbuild preprocessor works with TypeScript
  • Verified Cucumber preprocessor integration
  • Validated documentation accuracy

Production Checklist

  • All documentation is accurate and up-to-date
  • Peer dependencies are correctly specified
  • Migration path from Webpack to esbuild is documented
  • Example configurations are tested and working
  • Breaking changes (if any) are documented in migration guide

Alessio Michelini added 10 commits January 29, 2026 15:50
…s with detailed installation and configuration instructions
…, configuration, and CI/CD integration details
…lation, configuration, and the transition from Webpack to esbuild for improved performance and simplicity
…ild, highlighting improved performance and native TypeScript support
…ies including globals and typescript-eslint, and adjust peer dependencies for Cypress and Stylelint
…mproved performance and TypeScript support
…esbuild for Cypress installation, enhancing performance and simplicity
@darkmavis1980 darkmavis1980 requested a review from a team as a code owner January 29, 2026 16:58
Alessio Michelini and others added 5 commits February 4, 2026 15:44
…ies including globals, Cypress, and Stylelint, ensuring compatibility and improved performance
… to upgrade @badeball/cypress-cucumber-preprocessor to ^24.0.0 and stylelint to ^17.1.1 for improved compatibility and performance
denisolvr
denisolvr previously approved these changes Feb 23, 2026
@swatinigam swatinigam requested a review from denisolvr February 25, 2026 16:39
denisolvr
denisolvr previously approved these changes Feb 25, 2026
denisolvr
denisolvr previously approved these changes Feb 27, 2026
cfrisoli
cfrisoli previously approved these changes Mar 2, 2026
@darkmavis1980 darkmavis1980 dismissed stale reviews from cfrisoli and denisolvr via 70387d2 March 3, 2026 09:43
@darkmavis1980 darkmavis1980 merged commit dd7d202 into main Mar 3, 2026
1 check passed
@darkmavis1980 darkmavis1980 deleted the feature/add-cypress-configuration branch March 3, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants