question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unmatched rule names of scoped plugins.

See original GitHub issue

What version of ESLint are you using?

  • v2.11.1

What parser (default, Babel-ESLint, etc.) are you using?

  • default.

Please show your full configuration:

{
    "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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mysticateacommented, Aug 4, 2016

My suggestion is:

  • "test/test" should pointer the test rule of eslint-plugin-test plugin.
  • "@mysticatea/test/test" should pointer the test rule of @mysticatea/eslint-plugin-test plugin.

So this may be a breaking change.

1reaction
scottnonnenbergcommented, Aug 11, 2016

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found