Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat(eslint-plugin): deprecate formatting (meta.type: layout) rules#8073
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
feat(eslint-plugin): deprecate formatting (meta.type: layout) rules#8073
Uh oh!
There was an error while loading.Please reload this page.
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 onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedDec 15, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify site configuration. |
bradzacher left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
just to confirm - all the deprecated rules are the ones that have been moved toeslint-stylistic
, right? Are there any others?
Also accepted but you should mark them all asreplacedBy: ['eslint-stylistic/foo']
.
Final note (follow up?) we should add a banner to deprecated rules using this metadata and point them at the replacement docs.
Just did another pass - I did miss one, 👍 on the other two suggestions, good call! Done. |
Uh oh!
There was an error while loading.Please reload this page.
deprecated: true, | ||
docs: { | ||
description: 'Enforce consistent spacing inside braces', | ||
extendsBaseRule: true, | ||
}, | ||
replacedBy: ['@stylistic/object-curly-spacing'], |
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.
OCD eye twitch: all the other ones you added on consecutive lines
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.
Heh, the other ones are placed before atype:
. So they somewhat don't make the sorting less alphabetical. This one doesn't have atype:
...
packages/website/plugins/generated-rule-docs/insertions/insertFormattingNotice.ts OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…ypescript-eslint#8073)* feat(eslint-plugin): deprecate formatting (meta.type: layout) rules* fix: whoops, forgot to commit all.ts changes* Add replacedBy* Update formatting admonition* Missed object-curly-spacing* areOptionsValid undo* Correct configs and tweak deprecation notice
PR Checklist
Overview
For every rule whose
meta
includestype: 'layout'
, addsdeprecated: true
and removes the rule from theall
config.Note thatchanges to the
all
config are explicitlynot considered breaking. Perhttps://typescript-eslint.io/linting/configs (added in#5719, back in v5):