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

requireNamedUnassignedFunctions does not recognize ES6 class methods #2206

Closed oliversalzburg closed 8 years ago

oliversalzburg commented 8 years ago
$ jscs jscs.js
Inline functions need to be named at jscs.js :
     2 |
     3 |class Foo {
     4 |  bar() {}
-------------^
     5 |}

1 code style error found.

.jscsrc is:

{
        "requireNamedUnassignedFunctions": {
                "allExcept": [
                        "describe",
                        "it",
                        "before",
                        "after",
                        "beforeEach",
                        "afterEach"
                ]
        }
}
markelog commented 8 years ago

Works for me