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: Deprecate formatting rules #17696
Conversation
✅ Deploy Preview for docs-eslint canceled.
|
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.
Deprecated rules are automatically removed from eslint:all
.
No idea why I'm getting a warning around marking rules as deprecated. It seems like I've set up everything correctly. |
We should update the docs too. Example: eslint/docs/src/rules/no-return-await.md Line 10 in c0b11dd
|
I wonder if there would be a better phrase than "deprecated with no replacement" (as we http://eslint.style/ are taking over as the "replacement") - maybe point to the blog post instead? |
@mdjermanovic the output seems to indicate that either updating the source code OR updating the README should satisfy this check. However, from the code, it looks like both are required. I'll fix the messaging as part of this. @antfu We can do that. Is the prefix for all rules |
Yes, exactly. Thanks |
This test will fail when we release eslint/tests/lib/eslint/eslint.js Lines 481 to 508 in 485ec7d
|
eslint/lib/rules/no-extra-semi.js Line 26 in 485ec7d
|
I fixed the test. We generally don't remove rules from |
Did you push that change? |
Oops. 😆 Got distracted. Pushed now. |
I agree with removing those two rules from Our semver policies do allow removing rules from |
Yes, that was the intent. 👍 I added a note to remove these rules in v9.0.0: #17596 |
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.
LGTM, thanks!
* main: (248 commits) Revert "chore: remove metascraper (eslint#17707)" (eslint#17708) 8.53.0 Build: changelog update for 8.53.0 chore: remove metascraper (eslint#17707) chore: Update dependencies (eslint#17706) chore: package.json update for @eslint/js release docs: change position of return to top button (eslint#17688) feat: Deprecate formatting rules (eslint#17696) test: fix ESLint tests for caching (eslint#17699) feat: Add suggestions for no-prototype-builtins (eslint#17677) docs: update twitter icon to new X icon (eslint#17687) fix: ensure that exit code for fatal errors is not overwritten (eslint#17683) docs: Update README docs: Fix tabs in rule examples (eslint#17653) docs: explained rule fixers and suggestions (eslint#17657) ci: bump actions/setup-node from 3 to 4 (eslint#17676) fix: add `;` after JSX nodes in `no-object-constructor` autofix (eslint#17672) ci: run tests in Node.js 21 (eslint#17673) 8.52.0 Build: changelog update for 8.52.0 ...
@nzakas how to see all deprecated rules which are used in my project running CLI command? |
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
Deprecates rules
What changes did you make? (Give an overview)
Deprecates the agreed-upon rules
Fixes #17522
Is there anything you'd like reviewers to focus on?
Please double-check that I didn't miss any of the rules we agreed to deprecate.