-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Update: RuleTester Improvements #25
Conversation
Would it be too much scope creep to suggest that preprocessor support is included here? |
Oh. I had not considered processors. I will investigate it. |
I made a separated RFC about preprocessor support #31 because this RFC focuses on improvements with breaking changes. |
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!
I updated this RFC:
|
I updated this RFC |
Re: failing on unknown properties: It might be worthwhile to check with the typescript-eslint project, as well as anyone else who might be extending RuleTester, to see if that change breaks their cases and if we need to implement an escape hatch for them. (That said, for core ESLint rule testing, I absolutely support that change.) |
@platinumazure I'm sorry for my late response. About extending RuleTester, I guess that it's a case that someone overrides |
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. These look like they'll do a good job catching some hidden mistakes. As mentioned previously, I don't know how checking unknown properties might affect third-party users of RuleTester
. If it ends up causing problems, I would be fine with some sort of escape hatch or disabling that one check.
* Breaking: RuleTester Improvements (refs eslint/rfcs#25) * Use Object.defineProperties * Rename comment to token in error messages
I hope this RFC to be on the v7.0.0 line.
Summary
This RFC improves
RuleTester
to check more mistakes.Related Issues
node.start
/node.end
(fixes #8956) eslint#8984