Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow, or ignore, @ decorators #819
Comments
This comment has been minimized.
This comment has been minimized.
|
@owenayres does this solve your problem? https://github.com/feross/standard#how-do-i-use-experimental-javascript-es-next-features |
This comment has been minimized.
This comment has been minimized.
|
@timoxley Yep, that fixed my issue. Thanks for linking me up, feel stupid for missing this...! |
owenayres
closed this
Mar 10, 2017
This comment has been minimized.
This comment has been minimized.
progtarek
commented
Feb 28, 2018
|
HI @owenayres , @timoxley
'Injectable' is defined but never used. |
This comment has been minimized.
This comment has been minimized.
CJStroud
commented
Mar 5, 2018
|
Think it is related to babel/babel-eslint#545 |
lock
bot
locked as resolved and limited conversation to collaborators
Jun 3, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
owenayres commentedMar 10, 2017
•
edited
I have JS Standard running nicely on my project, with one annoying issue. My project is running in React and Webpack, with Babel, so I'm using shiny features such as decorators with frameworks like MobX (the framework I use to manage state).
The problem here is that JS Standard doesn't like, or shall we say recognise, what these decorators are. It will throw an error like: -
src/components/Avatar/Avatar.js:6:1: Parsing error: Unexpected character '@'My React component might look something like this, as a really simple example: -
It doesn't get the @CSSModules declaration in the above example. Is there something we can do to easily support this in a future release?
Cheers,
Owen