gajus / eslint-plugin-flowtype

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

fix: object-type-curly-spacing should not trim multi-line expressions #481

Closed angelica-bocanegra closed 3 years ago

angelica-bocanegra commented 3 years ago

closes #480 object-type-curly-spacing does not get triggered when the token and brace are not on the same line.

2 Scenarios:

The following are valid under the object-type-curly-spacing rule:

Option: Never

type bar = {
  rew: string,
  yup: string,}

type bar = {
  rew: string,
  yup: string,
}

type bar = {
  rew: string,
  yup: string,
                }

Option: Always

type bar = {
  rew: string,
  yup: string, }

type bar = {
  rew: string,
  yup: string,
}

type bar = { 
  rew: string,
  yup: string,
                }

@gajus

gajus commented 3 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: