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. |
|
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 |
btmills
left a comment
There was a problem hiding this comment.
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
RuleTesterto check more mistakes.Related Issues
node.start/node.end(fixes #8956) eslint#8984