Evan Hahn (dot com)

Disable ESLint for a file

I love ESLint but sometimes you want it to completely ignore a whole file. Add this to the top of your file:

/* eslint-disable */

It needs to be in /* this kind */ of comment, not // this kind.

And ESLint won't complain about your file any more!

Posted on .