New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES7 Class Properties throws 'Unexpected token =' #2304
Comments
It would be unwise for JSHint to commit to supporting any stage 0 proposals. |
You can prevent the error by demarcating non-standard portions with an class Person {
//start-non-standard
firstName = 'John';
static lastName = 'Doe';
//end-non-standard
} .jshintrc
|
@rwaldron thanks! |
@voronianski you're welcome! |
It's up to stage 1 now: https://github.com/jeffmo/es-class-static-properties-and-fields |
@hackel In the time since this feature request was made, we've formalized our requirements for new language features: http://jshint.com/blog/new-lang-features/ We'll be happy to accept patches once the "class properties" proposal reaches stage 2! |
Just an update, it's at stage 2 now: https://github.com/tc39/proposals. Perhaps time to re-open this issue? |
Now that this proposal has reached stage 2, I have created an issue to track support within JSHint. See gh-3139. |
Jeff Morrison's stage 0 class property initializers proposal fills the void of property composition on classes.
Currently when using:
Any plans to support such feature? Or maybe I'm missing an option? Thanks!
The text was updated successfully, but these errors were encountered: