jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 513 forks source link

Conflict between two rules because function* is not considered as a keyword #2185

Closed Skywalker13 closed 8 years ago

Skywalker13 commented 8 years ago

In the case of a jscsrc config file with :

{
  "requireSpaceAfterKeywords": true,
  "disallowSpacesInGenerator": { "beforeStar": true }
}
function* foobar() {}

Then requireSpaceAfterKeywords returns an error.

But IMHO function* should be considered as a keyword and not only function.

markelog commented 8 years ago

Duplicate of https://github.com/jscs-dev/node-jscs/issues/2168