Hi Peter,

The only way to turn off or on rules is to use /*eslint-disable*/ and
/*eslint-enable*/. We don't have anything similar to // eslint ignore:line.

-N


On Fri, Aug 8, 2014 at 11:23 AM, Peter deHaan <[email protected]> wrote:

> I thought I saw a thread/bug on this recently, but I can't seem to be able
> to find it...
>
> Should something like `// eslint ignore:line` work?
>
> var atob = require('atob'); // eslint ignore:line
>
> Currently I'm getting the following error:
>
> ```
>   10:4  error  'atob' is read only  no-undef
> ```
>
> And have to fix it by wrapping it in /*eslint-disable*/ block:
>
> ```
> /*eslint-disable */
> var atob = require('atob');
> /*eslint-enable */
> ```
>
> --
> 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.
>



-- 

______________________________
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