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 up[standard] Parsing error: Unexpected token = #1165
Comments
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Oct 15, 2018
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
label
Oct 15, 2018
This comment has been minimized.
This comment has been minimized.
|
??
|
stale
bot
removed
the
stale
label
Oct 15, 2018
This comment has been minimized.
This comment has been minimized.
CodeDraken
commented
Nov 12, 2018
|
I'm also having this issue with the latest Create React App boilerplate. Usually adding |
This comment has been minimized.
This comment has been minimized.
GustavoDinizMonteiro
commented
Nov 15, 2018
|
@CodeDraken i have the same issue but using the babel-eslint parser just change the error to for this code are there any additional settings you have made for the default to ignore this rule? |
This comment has been minimized.
This comment has been minimized.
CodeDraken
commented
Nov 15, 2018
No there shouldn't be anything else required... but like I said I'm also having this issue, I think it's a conflict with Create-React-App. |
This comment has been minimized.
This comment has been minimized.
GustavoDinizMonteiro
commented
Nov 17, 2018
:/ |
This comment has been minimized.
This comment has been minimized.
kaigouthro
commented
Jan 6, 2019
|
same issue randomly where the first '=' of a file is marked as an invalid token. |
This comment has been minimized.
This comment has been minimized.
karissa
commented
Jan 10, 2019
|
Yep, seeing same behavior. |
This comment has been minimized.
This comment has been minimized.
codepushr
commented
Jan 12, 2019
|
Encountering the same issue! |
This comment has been minimized.
This comment has been minimized.
jisi724
commented
Jan 18, 2019
|
same issue with @kaigouthro |
This comment has been minimized.
This comment has been minimized.
donald-cme
commented
Feb 12, 2019
•
|
Seeing the same issue when writing this (including in the online demo):
|
This comment has been minimized.
This comment has been minimized.
TonyJDavies
commented
Feb 25, 2019
|
Seeing the same issue as well. Oddly when I run the |
This comment has been minimized.
This comment has been minimized.
pjoriginal
commented
Apr 17, 2019
|
Same for me. |
This comment has been minimized.
This comment has been minimized.
Junting-Liu
commented
Apr 21, 2019
•
|
when i replace standard(11.0.1) with standardx(3.0.1), i encountered the same issue. |
This comment has been minimized.
This comment has been minimized.
ThomasGoehringer
commented
Jun 6, 2019
|
Is there any update? I'm still having this issue. |
This comment has been minimized.
This comment has been minimized.
srevenant
commented
Jun 19, 2019
|
It appears to be something to do with class level assignments (perhaps tied to React). It happens for me with both:
In any case, it's the first |
This comment has been minimized.
This comment has been minimized.
|
@ThomasGoehringer, @srevenant are you using |
This comment has been minimized.
This comment has been minimized.
srevenant
commented
Jun 22, 2019
Yes. If there is guidance for something else, I'm game to try. |
This comment has been minimized.
This comment has been minimized.
ThomasGoehringer
commented
Jul 4, 2019
|
Yes, me too. |
This comment has been minimized.
This comment has been minimized.
oliverfunk
commented
Jul 4, 2019
|
Also getting this issue. I don't want to have to use babel-eslint as the parser to make this lint'ing false positive go away... |
This comment has been minimized.
This comment has been minimized.
|
Hi everyone! A couple things to try:
Thanks! |
feross
added
the
need more info
label
Jul 6, 2019
This comment has been minimized.
This comment has been minimized.
ThomasGoehringer
commented
Jul 8, 2019
|
Prerelease version doesn't work either. Here's the output of
And here's a link to a repo where I'm having this problem: https://github.com/ThomasGoehringer/react-course-2-expensify-app |
This comment has been minimized.
This comment has been minimized.
srevenant
commented
Jul 11, 2019
•
|
Running standard as I would, but on version 13, received a TB the first time, but the second time it ran without error. However, it didn't actually work even though it ran without error. The TB:
$
|
This comment has been minimized.
This comment has been minimized.
|
@ThomasGoehringer What do you mean by "doesn't work"? I cloned the repo you linked to, ran "scripts": {
...
"lint": "standard",
...
}And it worked just fine, outputting the following errors:
When upgrading to v13.0.1, it also works just fine. Perhaps you have an old version of Then run add a script to |
This comment has been minimized.
This comment has been minimized.
|
@srevenant I believe that your issue is a duplicate of #1329 |
This comment has been minimized.
This comment has been minimized.
no-response
bot
commented
Jul 13, 2019
no-response
bot
closed this
Jul 13, 2019
This comment has been minimized.
This comment has been minimized.
ThomasGoehringer
commented
Jul 13, 2019
•
|
I wasn't running standard via script but with the VS Code plugin. So the issue is at another place. Thanks. |



gunningham commentedJul 17, 2018
•
edited
What version of standard?
11.0.1
What operating system, Node.js, and npm version?
OSX
6.1.0
10.3.0
What did you expect to happen?
standard --fix to fix arrow functions.
What actually happened?
Get a parsing error on arrow functions and standard --fix does not fix them.
All other rules appear to format ok
standard configs in package.json
devDeps
babelrc