-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option: list subclass names #148
Comments
probably can re-use the same logic eslint-plugin-wc uses: "settings": {
"wc": {
"elementBaseClasses": ["MyElement"]
}
} one idea is that we could use the same detection as eslint-plugin-wc: look for a bit of an awkward one though, lot of guesswork 😬 may be better to just do the base class stuff |
Has there been any resolution/workaround here? Looking to possibly use this plugin, but all our Lit elements extend from a custom |
My workaround, for now, has been to name my custom Lit class |
Thanks for the suggestion. While the above would work, it would require a lot of renaming across the codebase so not ideal. An easier approach would be to directly patch the relevant rules locally to use our custom subclass name (see below result for
Having said that, this would also not work well for our case since we often use Mixins using the following pattern. const MyElementBase = SomeMixin(MyLitElement);
class MyElement extends MyElementBase {...} So we would need to supply a list of classes. |
ill take a look at this at the weekend if i can 👍 pretty busy next few days but ill pick it up soon as i can |
We should provide an option that lists (string) subclass names, so that
lints up with our plugin
The text was updated successfully, but these errors were encountered: