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

test: use ESLint v9 in examples #264

Merged
merged 1 commit into from
Jul 23, 2024
Merged

test: use ESLint v9 in examples #264

merged 1 commit into from
Jul 23, 2024

Conversation

mdjermanovic
Copy link
Member

This PR updates test examples (react and typescript) to use ESLint v9. Since this plugin now supports only ESLint >=9, it doesn't make sense to test with ESLint v8.

"typescript": "^5.3.3",
"typescript-eslint": "^7.0.1"
"typescript-eslint": "8.0.0-alpha.51"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the latest prerelease. We'll need to use a prerelease version because v7 doesn't support ESLint 9. When final v8 is released, this should be changed to "^8.0.0".

Comment on lines 14 to 18
$ git clone https://github.com/eslint/eslint-plugin-markdown.git
$ cd eslint-plugin-markdown/examples/react
$ cd eslint-plugin-markdown
$ npm install
$ cd examples/react
$ npm test
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's necessary to install dependencies from the root because config uses the plugin module directly:

https://github.com/eslint/eslint-plugin-markdown/blob/e0da2214cc06fd441def1844135f3c9fef74e940/examples/react/eslint.config.mjs#L3

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@nzakas nzakas merged commit 923e440 into main Jul 23, 2024
11 checks passed
@nzakas nzakas deleted the examples-eslint-v9 branch July 23, 2024 14:49
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.

2 participants