Unmatched rule names of scoped plugins.
See original GitHub issueWhat version of ESLint are you using?
- v2.11.1
What parser (default, Babel-ESLint, etc.) are you using?
- default.
Please show your full configuration:
- I use @mysticatea/eslint-plugin-test plugin here.
{
"plugins": [
"@mysticatea/test"
],
"rules": {
"@mysticatea/test/test": "error"
}
}
@mysticatea/test/test
rule is:
return {
"Program": function(node) {
context.report({
node: node,
message: "This is a test."
})
}
}
What did you do? Please include the actual source code causing the issue.
eslint test.js
What did you expect to happen?
test.js
1:1 error This is a test @mysticatea/test/test
✖ 1 problem (1 error, 0 warnings)
What actually happened? Please include the actual, raw output from ESLint.
test.js
1:1 error Definition for rule '@mysticatea/test/test' was not found @mysticatea/test/test
✖ 1 problem (1 error, 0 warnings)
I think we should support @mysticatea/test/test
form’s rule specifier.
Thought?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (8 by maintainers)
Top Results From Across the Web
NetSuite Applications Suite - Displaying Unmatched Actuals
Unmatched actuals are entries from cost or revenue transactions with a global impact, which do not match any line of the WBS. They...
Read more >Accept All Unmatched Rows as Unique
mark as unique (CONSOLIDATION_IND=1) any records that have been through the match process, but for which no matches were identified. (changes the consolidation ......
Read more >Slots - Vue.js
In 2.6.0, we introduced a new unified syntax (the v-slot directive) for named and scoped slots. It replaces the slot and slot-scope attributes, ......
Read more >Understanding variant selection - Gradle User Manual
This variant is equivalent to the runtimeElements variant of the Java Library plugin. All dependencies of those scopes are considered runtime dependencies.
Read more >Customizing - BracketHighlighter Documentation
A customizable Sublime Text plugin that highlights matching brackets. ... List of languages in which the show_unmatched option logic will be ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My suggestion is:
"test/test"
should pointer thetest
rule ofeslint-plugin-test
plugin."@mysticatea/test/test"
should pointer thetest
rule of@mysticatea/eslint-plugin-test
plugin.So this may be a breaking change.
I use scoped plugins and the need to drop the scope for the rule name was initially confusing. It would help people new to scoped stuff to make the rule names a bit more predictable. Maybe support both for a while in ESLint 3, then 4x could require the scope name?