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

[engsys] upgrade dev dependency eslint-plugin-markdown to ^5.0.0 #29697

Merged
merged 6 commits into from
May 16, 2024

Conversation

jeremymeng
Copy link
Contributor

The breaking change that impacts us is that now typescript and javascript
code blocks in markdown files are maped to virtual files with .ts or .js,
instead of .typescript or .javascript as previously in v4.

This PR reacts to the change:

  • Add an overrides entry for **/*.md/*.ts because they now match the files
    pattern of our first overrides entry. Previously they are not linted because of
    their old .typescript extension. Their project is set to null as they
    don't belong to any project. They still are benefited from rules that don't
    require type checking.

The breaking change that impacts us is that now `typescript` and `javascript`
code blocks in markdown files are maped to virtual files with `.ts` or `.js`,
instead of `.typescript` or `.javascript` as previously in v4.

This PR reacts to the change:

- Add an overrides entry for `**/*.md/*.ts` because they now matches the files
pattern of our first override. Previously they are not linted because of the old
`.typescript` virtual file extension. Their `project` is set to `null` because
they are not part of any project.  They still are benefited from rules that
doesn't require type checking.
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@jeremymeng jeremymeng enabled auto-merge (squash) May 15, 2024 16:32
@jeremymeng
Copy link
Contributor Author

Failure unrelated to linting. Analyze builds are passing. Going to override and merge.

@jeremymeng
Copy link
Contributor Author

/check-enforcer override

@jeremymeng jeremymeng merged commit 76eafc5 into main May 16, 2024
29 of 35 checks passed
@jeremymeng jeremymeng deleted the engsys/eslint-plugin-markdown-v4 branch May 16, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants