Skip to content

docs: harmonize markdown docs with prettier linting #266

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

Merged

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Jun 5, 2025

Status

Markdown documents in this repo are not currently linted. This includes JavaScript code blocks inside Markdown README.md and docs/rules/*.md documents.

Change

  • Protect generated section in README.md from formatting conflicts between Prettier and eslint-doc-generator:

    <!-- prettier-ignore-start -->
    <!-- prettier-ignore-end -->
    
  • Lint Markdown files with npm run format whilst temporarily allowing Prettier formatting of *.md files and update them accordingly

Verification

On Ubuntu 24.04.2 LTS, Node.js 22.16.0 LTS

npm install eslint-doc-generator -g
eslint-doc-generator

Confirm no files are changed

Other

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 self-assigned this Jun 5, 2025
@MikeMcC399 MikeMcC399 marked this pull request as ready for review June 5, 2025 12:31
@MikeMcC399

This comment was marked as outdated.

@jennifer-shehane jennifer-shehane merged commit b974e98 into cypress-io:master Jun 5, 2025
12 checks passed
@MikeMcC399 MikeMcC399 deleted the docs/prettier-markdown branch June 6, 2025 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants