-
-
Notifications
You must be signed in to change notification settings - Fork 5
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: support type-aware rules #5
feat: support type-aware rules #5
Conversation
@antfu ping |
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
src/rule-tester.ts
Outdated
jsx: 'react.jsx', | ||
tsx: 'react.tsx', |
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.
jsx: 'react.jsx', | |
tsx: 'react.tsx', | |
jsx: 'file.jsx', | |
tsx: 'file.tsx', |
Wouldn't it better just having file
and be more natural? Any reason react
is needed?
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.
That's just how typescript-eslint does it for their tester so I just copied them.
@antfu Is there any docs for this change? If not that's fine |
Description
Adds support for testing type-aware rules.
Linked Issues
fixes #4