Skip to content

v1.0.0-alpha.6

Pre-release
Pre-release

Choose a tag to compare

@hawkeye64 hawkeye64 released this 16 Aug 13:54
· 58 commits to dev since this release
  • feat(rules): 'no-legacy-properties' - will check for properties in current components that doen't exist any longer
  • fix: if message is available, use that instead of generated message

In your 'rules' section of .eslintrc.js add the following:
'quasar/no-legacy-properties': 1`

Use 1 for warning, 2 for error

Example:

236:19  warning  'toggle' property has been removed                                                                                        237:19  warning  'float-label' property has been removed                                                                                   264:29  warning  'highlight' property has been removed                                                                                     358:19  warning  'toggle' property has been removed                                                                                        359:19  warning  'float-label' property has been removed                                                                                   379:19  warning  'toggle' property has been removed                                                                                        380:19  warning  'float-label' property has been removed                                                                                   392:19  warning  'toggle' property has been removed                                                                                        393:19  warning  'float-label' property has been removed

Improved messages:
Some rules have a custom message instead of generated (as per docs Upgrade Guide).
Example:

3:5   warning  QWindowResizeObservable: directly use `this.$q.screen.width` and `this.$q.screen.height` (or create a watcher on them)