The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Compiler version must satisfy a semver requirement.
This rule accepts an array of options:
Index | Description | Default Value |
---|---|---|
0 | Rule severity. Must be one of “error”, “warn”, “off”. | error |
1 | Semver requirement | ^0.8.0 |
{
"rules": {
"compiler-version": ["error","^0.8.0"]
}
}
This rule does not have examples.
This rule was introduced in Solhint 2.1.0