eslint-plugin-wc
eslint-plugin-wc copied to clipboard
Possibly update no-constructor-params rule to allow optional params
You could in theory have constructor parameters as long as they are optional:
class Foo extends HTMLElement {
constructor(a?: string, b?: string) {
// fine
}
}
We could update the rule to check for this and allow it