If you expand the rule configuration section, there’s an option for
ecmaVersion that you can change.
On Tue, Nov 13, 2018 at 9:13 AM Dimitar Nestorov <
[email protected]> wrote:

> Setup your config to have either
> {
>   "env": {
>      "es6": true
>   }
> }
>
> or
>
> {
>   "parserOptions": {
>     "ecmaVersion": 2015
>   }
> }
>
>
>
> On Tuesday, November 13, 2018 at 6:20:42 PM UTC+2, David Fishburn wrote:
>>
>> Just using the eslint demo <https://eslint.org/demo> page:
>>
>> And using this code:
>> function dave (top = 0) {
>> }
>>
>>
>>
>> Reports:
>> 1:20 Parsing error: Unexpected token =
>>
>>
>> Is there anyway to stop this?
>> I can't find any ESLint parameters to prevent it.
>> Surprisingly, I can't even find anyone else complaining about it, even
>> though this is valid syntax.  Added as part of ES6.
>>
>> TIA
>>
>> --
> 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.

Reply via email to