@rotki/consistent-ref-type-annotation
Ensures consistent type annotation position for ref, computed assignments
- ⭐ The
"extends": "plugin:@rotki/recommended"
property in a configuration file enables this rule. - ✒️️ The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule reports inconsistent type annotation positioning for ref
and computed
properties.
⚙️ Options
By default, a missing type annotation in a ref
or computed
is considered a problem. If you want to allow type inference on ref
or computed
assignments you can set allowInference
to true
.
json
{
"@rotki/consistent-ref-type-annotation": [
"error",
{
"allowInference": false
}
]
}
🚀 Version
This rule was introduced in @rotki/eslint-plugin
v0.4.0