feat: Support plugins with scoped names - #104
Conversation
Current coverage is 100%@@ master #104 diff @@
====================================
Files 9 9
Lines 199 206 +7
Methods 0 0
Messages 0 0
Branches 0 0
====================================
+ Hits 199 206 +7
Misses 0 0
Partials 0 0
|
| 'react/bar-rule', | ||
| 'react/baz-rule', | ||
| 'react/foo-rule', | ||
| 'something/two-rule', |
There was a problem hiding this comment.
Should something/two-rule to be @someone/something/two-rule?
There was a problem hiding this comment.
As I understand the ESLint docs, the rules are to be referenced by their containing plugin's name (regardless of their possibly scoped package's name).
So for eslint-plugin-<plugin-name>'s rules, as well as @scope/eslint-plugin-<plugin-name>, its rules should be configured via <plugin-name>/<rule-name>.
Please correct me, if I'm wrong.
There was a problem hiding this comment.
May not be a practical use case, curious to know, how does eslint handle, two or more scoped plugins, of the same name?
There was a problem hiding this comment.
@ta2edchimp I tested it in another project as I was working on this, and yes, for configuration rules take only the plugin name and not the scope name. Wasn't my first guess.
|
@scottnonnenberg Thanks for the PR! |
|
That should take care of all the feedback - let me know if you've got anything else! |
|
👍 looks great! Thanks! @ta2edchimp please have a look and merge if you don't have any comments. |
|
Ohh, @scottnonnenberg please add yourself to the contributors list |
|
Really cool, thanks for the PR! |
My PR was merged and released! sarbbottam/eslint-find-rules#104
I was getting this error: