Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable ESLint warnings on a file?

I have just started to use linters, and am currently using the linter-eslint 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.
(source: cubeupload.com)

like image 932
theonlygusti Avatar asked Oct 29 '22 21:10

theonlygusti


1 Answers

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.

like image 109
Alexander O'Mara Avatar answered Nov 04 '22 09:11

Alexander O'Mara