I think you'd need to specify an "es6" and "node" env as a minimum:
```
{
"env": {
"es6": true,
"node": true
},
"extends": "google",
"installedESLint": true
}
```
After I add that, it seems to work for me, and displays an error saying
that you're missing a semicolon after the `res.send()`.
On Fri, Nov 4, 2016 at 4:14 AM, Miha Šušteršič <[email protected]>
wrote:
> At the moment I am using eslint with this config:
>
> {
>> "extends": "google",
>> "installedESLint": true
>> }
>
>
> When linting this function:
>
> app.get('/', (req, res) => {
>> console.log(req);
>> res.send('hello world')
>> });
>
>
> I get:
>
> > ESlint: Parsing error: Assigning to rvalue
>
>
> But, my code runs without problems.
>
> Can someone explain what this error means and what am I doing wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ESLint" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.