seegno / jscs-config-seegno

Seegno-flavored JSCS config
2 stars 0 forks source link

Fix issue in padding newlines before keywords rule #4

Closed nunofgs closed 8 years ago

nunofgs commented 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.