Skip to content
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

Definition for rule 'json-files/rule-name' was not found json-files/rule-name #61

Open
alias8 opened this issue May 27, 2020 · 2 comments

Comments

@alias8
Copy link

alias8 commented May 27, 2020

Hi

I made an example repo here https://github.com/alias8/eslint-plugin-json-files-problem. When running npm run lint I get the error Definition for rule 'json-files/rule-name' was not found json-files/rule-name, am I missing something obvious here?

Thanks for any assistance :)

@shaunlmason
Copy link

shaunlmason commented Oct 16, 2020

I'm not sure if this will be of much value five months later, but the documentation is just unclear.

There are the following rules:

json-files/no-branch-in-dependencies
json-files/require-engines
json-files/require-license
json-files/restrict-ranges
json-files/sort-package-json

To avoid confusion, in the documentation:

{
    "rules": {
        "json-files/rule-name": "error"
    }
}

should be:

{
    "rules": {
        "json-files/<RULE_NAME>": "error"
    }
}

I'll put a PR up to address this.

@shaunlmason
Copy link

@kellyselden How do I go about getting access to PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants