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

feat(rule-tester): assert suggestion messages are unique #8995

Conversation

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Apr 25, 2024

PR Checklist

Overview

Brings in changes from eslint/eslint#17532. This is pretty much a copy & paste.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @JoshuaKGoldberg!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review April 26, 2024 01:01
@JoshuaKGoldberg JoshuaKGoldberg added this to the 8.0.0 milestone Apr 26, 2024
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team April 26, 2024 01:01
@bradzacher
Copy link
Member

BREAKING CHANGE:
Adds extra validation to rule-tester.

sir #8969

Per the discussion in that thread, we'd like to not treat this as a breaking change

bradzacher
bradzacher previously approved these changes Apr 26, 2024
@auvred
Copy link
Member

auvred commented Apr 26, 2024

Oh, looks like rule-tester is not tested in CI:

package:
[
'ast-spec',
'eslint-plugin',
'eslint-plugin-internal',
'parser',
'repo-tools',
'rule-schema-to-typescript-types',
'scope-manager',
'type-utils',
'typescript-eslint',
'typescript-estree',
'utils',
'visitor-keys',
]

I also tried to run yarn run test-eslint-base locally and got a bunch of test failures related to deprecated in ESLint v9 stuff. What do you think about syncing tests/eslint-base/eslint-base.test.js and tests/eslint-base/fixtures/* with upstream? It looks like some fixtures have been changed in v9 as well.

@JoshuaKGoldberg
Copy link
Member Author

sir #8969

Per the discussion in that thread, we'd like to not treat this as a breaking change

Oh! I missed that 🤦 excellent. In that case I'll switch this to be against main and consider #8211 as having all required issues blocked. I sent #9002 to start working on ESLint 9 range support on the v8 branch.

@JoshuaKGoldberg JoshuaKGoldberg changed the base branch from v8 to main April 26, 2024 14:11
@JoshuaKGoldberg JoshuaKGoldberg dismissed bradzacher’s stale review April 26, 2024 14:11

The base branch was changed.

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit a6d1af0
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/662bb60585ab0c000815b2fb
😎 Deploy Preview https://deploy-preview-8995--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 91 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@JoshuaKGoldberg
Copy link
Member Author

Oh, looks like rule-tester is not tested in CI:

😂. #9005. Good spot!

tried to run yarn run test-eslint-base locally and got a bunch of test failures related to deprecated in ESLint v9 stuff

Ooh, yes, that too. Since you have it locally - would you be up for filing that? I'm kind of flitting between things.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 277ee38 into typescript-eslint:main Apr 28, 2024
60 of 61 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the rule-tester-unique-suggestions branch April 28, 2024 16:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants