-
Notifications
You must be signed in to change notification settings - Fork 37
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
[New] check unused rules with overrides #343
[New] check unused rules with overrides #343
Conversation
Fixes sarbbottam#317. Co-authored-by: nicolaichuk <[email protected]> Co-authored-by: Jordan Harband <[email protected]>
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.
Can you help me understand what this PR is doing? Would, for example, @scope/scoped-plugin/foo-rule
be included in the unused rules list without this fix?
@nicolaichuk Is there something I can help with in order to get this one merged? |
Answering the question i asked above would help. |
@ljharb This PR will make it possible to have an module.exports = {
rules: {},
overrides: {
files: ['**/__tests__/**/*.+(js|ts)?(x)'],
rules: {
'jest/no-conditional-expect': 'error',
},
},
} instead of needing to first disable it module.exports = {
rules: {
'jest/no-conditional-expect': 'off',
},
overrides: {
files: ['**/__tests__/**/*.+(js|ts)?(x)'],
rules: {
'jest/no-conditional-expect': 'error',
},
},
} And still have This will make the |
Great, thanks for explaining. |
2f73651
to
097f203
Compare
097f203
to
6dabfb7
Compare
Codecov Report
@@ Coverage Diff @@
## master #343 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 185 185
=========================================
Hits 185 185
Continue to review full report at Codecov.
|
@ljharb Thanks for merging! Can you please cut a release? |
That takes a bit longer due to requiring a review from another collaborator. |
Please ping me when it's released |
v4.1.0 is released |
Thanks. |
Fixes #317.