gajus / gajus/eslint-plugin-flowtype

Require class property type annotation

Open
#301 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.