-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Support for class properties ? #2019
Comments
This works fine for me, where are you seeing these ESLint errors, in your IDE/text editor or the output from You may need to follow the instructions provided here. |
in IDE both Webstorm and Atom i recently removed everything globally installed, including all eslint/babel related stuff |
Sorry, we don't support I suggest you look "format": "prettier --single-quote --no-semi --trailing-comma es5 --write 'src/**/*.js'" Be sure to run You can format your code on-demand by running If you want to automate this, check out #2006. If you can figure out how to get standard working, I would be open to a pull request which explains it for people in the future. |
I'm going to close this since it's largely unactionable by us, but let me know if you need help getting prettier set up. |
mmmm very impresssive, fast formatter. |
Sorry if this already has been posted, but i didnot find in issues with keyword "class properties".
My problem is basically at every new project i start with CRA and then starting to right my components, ESLINT complains about
unexpected token =
.Thing is i always start implementing my components with :
static propTypes = ...
static defaultProps = ...
static contextTypes = ...
state = { ... }
method = () => { ... }
etc ...
Research told me these are all under the concept of "class-properties", i thought CRA has already included ?
I'm on Windows10, node 7.9.0, CRA 1.3.0, and almost nothing installed globally besides yarn and npm-check.
Do i have to install (or write) something else on top of CRA's base installation ?
The text was updated successfully, but these errors were encountered: