This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
(impact:high) Lint rule to prevent public methods on WidgetObjects from returning WidgetObjectElement #335
Labels
enhancement
New feature or request
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
A widget object should not return
WidgetObjectElement
s from public methods, they are only meant to be used internally within the widget object. Users of widget objects should always access methods ofT
which is the platform specific object, an Angular Element or Cypress Chainable . This can be enforced through linting.Impact
Developers have been creating methods that return
WidgetObjectElement
and then callingunwrap()
from multiple places.The text was updated successfully, but these errors were encountered: