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

Rule for object curly brace new line

Open Brianzchen opened this issue 4 years ago • 1 comments

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

Brianzchen avatar Mar 12 '21 09:03 Brianzchen

There's a separate rule https://eslint.org/docs/rules/object-property-newline that can be done later

Brianzchen avatar Jul 30 '21 11:07 Brianzchen