Disable ESLint for a file

by
, posted

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!

There are other ways to ignore files with ESLint, too. Check out the “Ignoring Code” page on ESLint’s docs.