theonlygusti theonlygusti - 3 months ago 28
Javascript Question

Disable ESLint warnings on a file?

I have just started to use linters, and am currently using the

package to integrate javascript linting into atom (my IDE of choice.)

Now ESLint is giving me this warning for a
.atom-build.js
file I have inside my current project directory:

File ignored by default. Use a negated ignore pattern to override.


I want to suppress this warning, because it is bugging me that everything else is fine but there is still this red X in the bottom-left corner of atom.

I tried adding the line:

/* eslint-disable */


to the top of my file, but it doesn't remove the warning.

/* eslint-disable */ > File ignored by default. Use a negated ignore pattern to override.

Answer

I believe you can just add the following line to your .eslintignore file, essentially negating the default ignoring of the file.

!.atom-build.js

Since the file is ignored by default, I don't believe a comment in the header with change anything.

Comments