Skip to content

@rotki/composable-input-flexibility

Prefer MaybeRefOrGetter over Ref for composable parameters

  • ✒️️ The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports Ref<T> type annotations on composable parameters and suggests using MaybeRefOrGetter<T> for greater input flexibility.

🔧 Options

json
{
  "@rotki/composable-input-flexibility": ["error", { "autofix": false }]
}

autofix

  • Type: boolean
  • Default: false

When true, enables auto-fix via the --fix CLI flag. When false (default), the fix is available only as an editor suggestion.

🚀 Version

This rule was introduced in @rotki/eslint-plugin v1.3.0

🔍 Implementation