-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: enable eslint-plugin-perfectionist on eslint-plugin package, with ordering tweaks #9843
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: enable eslint-plugin-perfectionist on eslint-plugin package, with ordering tweaks #9843
Conversation
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. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
a9f8902
to
06c6ece
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my 2c: big no no here for rule definitions and test definitions.
packages/eslint-plugin/tests/rules/adjacent-overload-signatures.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully agree with @bradzacher here.
Also, even if I agreed the sorted version were preferable, I would say this is a huge disruption to the git history for marginal gain at best, and therefore better to pass on, granted the existing codebase state.
There's a sorting rule in |
packages/eslint-plugin/src/rules/naming-convention-utils/enums.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i guess i have been picky enough 😆 Thanks for indulging me
PR Checklist
Overview
Enables sorting on
packages/eslint-plugin
.This by nature
includes a couple changes to rule ordering preferencesedit: after review feedback, this now sets the config to explicitly override alphabetrization:create
after metadata such asmeta
in rule definitionsstart
beforeend
in rule reports and test casestype
before other properties in rulemeta
and schema objectsvalid
entries beforeinvalid
ones in rule tests💖