The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Variable “name” is unused.
This rule accepts an array of options:
Index | Description | Default Value |
---|---|---|
0 | Rule severity. Must be one of “error”, “warn”, “off”. | warn |
1 | A JSON object with a single property “validateParameters” as boolean specifying whether to report unused parameters from functions and modifiers. | {“validateParameters”:true} |
{
"rules": {
"no-unused-vars": [
"warn",
{
"validateParameters": true
}
]
}
}
This rule does not have examples.
This rule was introduced in Solhint 5.0.4