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!: drop support for function-style rules and rules missing schemas #16614
Conversation
Hi @bmish!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by running Read more about contributing to ESLint here |
✅ Deploy Preview for docs-eslint canceled.
|
Hi @bmish!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
To Fix: You can fix this problem by running Read more about contributing to ESLint here |
BREAKING CHANGE RFC-85
I think it may be a bit too early to be filing a breaking PR when we haven't even planned ESLint v9 yet. Switching to a draft to avoid accidental merging, but I think it may be better to close this and hold on to the changes until we are actively planning for a major release. |
}); | ||
|
||
it("should not log a deprecation warning when schema is an empty array", () => { | ||
it("should not throw an error when schema is an empty array", () => { |
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.
Seems like these tests could be updated to remove the use of should
.
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.
How else would you write it? I do want it to read like an English sentence.
@nzakas "draft" status works for me as I'd love to begin receiving and responding to feedback on this. I will likely have 4 breaking change RFCs to implement for ESLint v9, so I wanted to start preparing them now so they are lined up and ready to go whenever you decide to schedule the release. My concern is that each of these PRs could take several weeks of work, and if I wait until ESLint v9 is announced, I won't have time to complete them. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
@bmish wants this open for feedback. Don't close. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
This pull request was auto-closed due to inactivity. While we wish we could keep working on every request, we unfortunately don't have the bandwidth to continue here and need to focus on other things. You can resubmit this pull request if you would like to continue working on it. |
@bmish this PR seems very out of date and hasn't been updated in a while. What do you think about closing this for now? You can always pick up the work and submit a new PR later. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
Okay, we are just going to close this. @bmish you can feel free to resubmit when it's time. |
UPDATE: this PR was replaced by:
schema: []
, drop support for function-style rules #17792Prerequisites 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
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
This implements RFC-85 (eslint/rfcs#85) for these two scenarios:
This is targeted to be merged as a breaking change in ESLint v9. It's a follow-up to @snitin315's work to add warnings in #16063.
Notable changes:
schema: {}
schema: false
opt-out featureIs there anything you'd like reviewers to focus on?
Should we delete
docs/developer-guide/working-with-rules-deprecated.md
. Perhaps we should delete most of the content and keep a barebones doc in place to avoid breaking links.I'm a bit unsure about the below comment from an earlier PR. Should I duplicate the tests into FlatRuleTester? Should we still be relying on asserts in rule tester at all?