compiler-version
July 2, 2025 ยท View on GitHub
The {"extends": "solhint:recommended"} property in a configuration file enables this rule.
Description
Compiler version must satisfy a semver requirement at least ^0.8.24.
Options
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.24 |
Example Config
{
"rules": {
"compiler-version": [
"error",
"^0.8.24"
]
}
}
Examples
This rule does not have examples.
Version
This rule was introduced in Solhint 2.1.0