Available Rules
- ⭐ mark: the rule which is enabled by
plugin:@rotki/recommendedpreset. - ✒️ mark: the rule which is fixable by
eslint --fixcommand.
recommended
| Rule ID | Description | |
|---|---|---|
| @rotki/ | Ensures consistent type annotation position for ref, computed assignments | ⭐✒️ |
| @rotki/ | enforce a maximum number of dependencies per file | ⭐ |
| @rotki/ | disallow the usage of vuetify css classes since they are replaced with tailwindcss | ⭐✒️ |
| @rotki/ | Removes deprecated classes that do not exist anymore | ⭐✒️ |
| @rotki/ | Replaces deprecated props with their replacements | ⭐✒️ |
| @rotki/ | Checks and replaces .ts extension in import statements. | ⭐✒️ |
| @rotki/ | Reports and replaces imports of @rotki/ui-library-compat with @rotki/ui-library | ⭐✒️ |
| @rotki/ | disallow unused i18n keys in locale files | ⭐✒️ |
strict
| Rule ID | Description | |
|---|---|---|
| @rotki/ | Forbid default exports in files containing composables | |
| @rotki/ | Prefer shallowRef() over ref() for primitive values in composables | ✒️ |
| @rotki/ | Require cleanup hooks when composables use side effects | |
| @rotki/ | Require returned refs from composables to be wrapped with readonly() | ✒️ |
| @rotki/ | Require browser global access in composables to be SSR-safe |
stylistic
| Rule ID | Description | |
|---|---|---|
| @rotki/ | Prefer MaybeRefOrGetter over Ref for composable parameters | ✒️ |
| @rotki/ | Enforce consistent naming for composable options and return types | |
| @rotki/ | Require JSDoc comments on composable options interface properties |