eslint-plugin-wc icon indicating copy to clipboard operation
eslint-plugin-wc copied to clipboard

Possibly update no-constructor-params rule to allow optional params

Open 43081j opened this issue 3 years ago • 0 comments

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

43081j avatar May 10 '21 15:05 43081j