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 'no-commonjs' was not found #853

Closed
Telokis opened this issue May 29, 2017 · 1 comment
Closed

Definition for rule 'no-commonjs' was not found #853

Telokis opened this issue May 29, 2017 · 1 comment

Comments

@Telokis
Copy link

Telokis commented May 29, 2017

I get this error in every file of my project.

1:1 error Definition for rule 'no-commonjs' was not found no-commonjs

Here is my config:

{
    "extends": [
        "plugin:react/recommended",
        "airbnb-base"
    ],
    "parserOptions": {
        "ecmaVersion": 2017,
        "sourceType": "module",
        "ecmaFeatures": {
            "jsx": true
        }
    },
    "plugins": [
        "react",
        "import"
    ],
    "rules": {
        // Overriden
        "no-underscore-dangle": "off",
        "func-names": ["error", "as-needed"],
        "no-plusplus": "off",
        "no-commonjs": "error",
        "indent": ["error", 4],
        "no-var": "error",
        "class-methods-use-this": "off",
        "no-param-reassign": ["error", { "props": false }],
        "no-useless-return": "warn"
    }
}```

I am not doing anything particular. I have no idea at all about this issue.
@ljharb
Copy link
Member

ljharb commented May 29, 2017

What does npm ls report?

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

No branches or pull requests

2 participants