node-jscs
node-jscs copied to clipboard
Spaces in ES2015 object literals
In jscs:2.0.0 this code with new ES2015 literal syntax causes an error Missing space before opening round brace.
let obj = {
method() {
}
};
And this code causes an error Illegal space after key.
let obj = {
method () {
}
};
Are there any rules for this case?
Thanks for reporting @verkholantsev. You can specify jscs . --verbose to see the rule that causes the error. I think we have an issue for this already but not sure.
https://github.com/jscs-dev/node-jscs/issues/1513
Ok closing in favor of #1513.