ESLint error and warning for the same rule with different options

Viewed 656

Is there a way to configure ESLint's no-unused-vars rule to show unused variables as errors except if they are function args show them as warnings?

Something like:

{
    "rules": {
        "no-unused-vars": ["error", { "vars": "all", "args": "none" }],
        "no-unused-vars": ["warn", { "vars": "none", "args": "all" }],
    }
}
0 Answers
Related