Oh, my sincere apologies. I was migrating from an existing configuration 
with JsHint and it didn't cross my mind that these tools would differ in 
this respect. Thanks for educating me and sorry about the noise :-)

Best regards
Mike

Den lördag 17 januari 2015 kl. 17:40:13 UTC+1 skrev Nicholas Zakas:
>
> Hi Mike,
>
> ESLint is not a JSON validator, it's a JavaScript validator. You can't use 
> it in this way.
>
> -N
>
> On Sat, Jan 17, 2015 at 6:50 AM, Michael Ficarra <[email protected] 
> <javascript:>> wrote:
>
>> Why would you pass eslint a JSON file? 
>> On 17 Jan 2015 01:43, "Mike Wilson" <[email protected] <javascript:>> 
>> wrote:
>>
>>> I seem to get lint errors on the colon in json files (see below). Js 
>>> files seem to work better. 
>>> Any hints on what I can do to resolve this?
>>> I'm running through cygwin bash shell on Windows 8.
>>>
>>> $ cat >file.json
>>> {
>>>   "jj": 0
>>> }
>>>
>>> $ eslint file.json
>>> file.json
>>>   2:6  error  Unexpected token :
>>> ? 1 problem
>>>
>>> Thanks
>>> Mike
>>>
>>> -- 
>>> 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] <javascript:>.
>>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> ______________________________
> Nicholas C. Zakas
> @slicknet
>
> Author, Professional JavaScript for Web Developers
> Buy it at Amazon.com: 
> http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
>  

-- 
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