gajus / eslint-plugin-flowtype

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

enforceLineBreak now handles `export type` correctly #488

Closed Brianzchen closed 3 years ago

Brianzchen commented 3 years ago

Closes #487

Brianzchen commented 3 years ago

cc: @gajus @angelica-bocanegra

Brianzchen commented 3 years ago

Found that node.leadingComments won't work when published, for some reason the test suite still populates the values. And eslint docs recommend sourceCode.getCommentsBefore() instead which still lead to reliable tests and now also replicates the real world

https://eslint.org/docs/user-guide/migrating-to-4.0.0#ast-nodes-no-longer-have-comment-properties

gajus commented 3 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: