gajus / gajus/eslint-plugin-flowtype
Require class property type annotation
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
A big thank you for this great project.
I'm looking a rule for that would require type annotation for class property. For instance:
```js
class Foo {
// throws an error because bar is missing a type annotation.
bar;
}
```
Does this rule exists already and I missed it from the documentation maybe?
Contributor guide
Research direction
Start by reviewing the existing rule documentation and related rules in the ESLint plugin to find the appropriate entry point and test conventions. The work is done when class properties without type annotations are reported while annotated properties are accepted, with the rule documented and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100