gajus / eslint-plugin-flowtype

Flow type linting rules for ESLint.
Other
1.08k stars 153 forks source link

feat: add new rule enforce-line-break #484

Closed angelica-bocanegra closed 3 years ago

angelica-bocanegra commented 3 years ago

New rule to enforce line breaks before and after type declarations.

Closes #476

// Error
type A = string;
type B = number;
// Some Comment
type rez = string;

// Fixes to 
type A = string;

type B = number;

// Some Comment
type rez = string;

@gajus

gajus commented 3 years ago

:tada: This PR is included in version 5.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: