Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add linting to action core javascript files #1370

Merged

Conversation

MikeMcC399
Copy link
Collaborator

Situation

The repo currently uses prettier as code formatter. There is no use of the ESLint JavaScript linter, which is used in other Cypress repos such as the main cypress repo. ESLint allows setting consistent rules for code.

Change

  • Install eslint and @eslint/js.

  • Enable linting for core action files index.js and src/*.js using recommended rules.

  • Exclude examples from linting in this first step.

  • Add script lint. At this time, the script is not integrated into CI. This can be added later.

Verify

npm ci
npm run lint

and confirm that no linting errors are reported.

@MikeMcC399 MikeMcC399 added the ci label Feb 25, 2025
@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 self-assigned this Feb 25, 2025
@MikeMcC399 MikeMcC399 marked this pull request as ready for review February 25, 2025 16:17
@jennifer-shehane jennifer-shehane merged commit 2ba4378 into cypress-io:master Feb 25, 2025
75 checks passed
@MikeMcC399 MikeMcC399 deleted the add/eslint-action-core branch February 25, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants