The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
“throw” is deprecated, avoid to use it.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"avoid-throw": "warn"
}
}
--fix
optionThis rule does not have examples.
This rule was introduced in Solhint 2.0.0-alpha.0