gajus / gajus/eslint-plugin-flowtype

Rule for object curly brace new line

Open
#468 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

```
type Obj = {
test: number };
```
The above should error and instead be fixed to
```
type Obj {
test: number,
};
```

Rule that does patterns similar to this https://eslint.org/docs/rules/object-curly-newline

Contributor guide

Open the contributing guide

Research direction

Start by comparing the requested Flow object-type formatting with ESLint's object-curly-newline rule, linked in the issue. Use the two examples as the expected error and autofix behavior; done means the rule handles this pattern consistently and verifies both outcomes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.