43081j / 43081j/eslint-plugin-wc

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

Open
#53 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
113
Forks
19
Avg merge
3h 14m
Merged PRs (30d)
2

Description

You could in theory have constructor parameters as long as they are optional:

```ts
class Foo extends HTMLElement {
constructor(a?: string, b?: string) {
// fine
}
}
```

We could update the rule to check for this and allow it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.