You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion: find some smart way of detecting when it's a playwright locator (hard) and/or downgrade the fix to a suggestion (easy). Either way I don't think it's good for the lint plugin to transform correct code into incorrect code automatically.
The text was updated successfully, but these errors were encountered:
Playwright's Locator class has a
getAttribute
method. Using this with adata-foo
attribute gets autofixed to.dataset.foo
which is wrong.rule:
unicorn/prefer-dom-node-dataset
Suggestion: find some smart way of detecting when it's a playwright locator (hard) and/or downgrade the fix to a suggestion (easy). Either way I don't think it's good for the lint plugin to transform correct code into incorrect code automatically.
The text was updated successfully, but these errors were encountered: