Skip to content

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

@Telokis

Description

@Telokis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions