Closed nunofgs closed 8 years ago
When using ES6 syntax, the "requirePaddingNewlinesBeforeKeywords" rule fails when exporting a function. For example:
export function create() { … }
Will return the error:
Keyword `function` should have an empty line above it: 89 | */ 90 | 91 |export function create() { --------------^
However, if the export keyword is removed, the rule works.
export
When using ES6 syntax, the "requirePaddingNewlinesBeforeKeywords" rule fails when exporting a function. For example:
Will return the error:
However, if the
export
keyword is removed, the rule works.