Emily
Emily

Reputation: 2331

Disabling EsLint For Single File Not Working

I have a VueJS project initialized using Webpack, with Eslint enabled.

I'm trying to disable it for a file using the tag...

/* eslint-disable */

...at the top of the file.

It's not working.

I've tried other combinations:

/*eslint-disable no-alert, no-console */

/* eslint-disable no-alert */

It still isn't disabling at the file level?

Is this something I need to disable at the Webpack config file?

Is there some simpler way to disable at the file level?

Upvotes: 5

Views: 1866

Answers (1)

Cloggie
Cloggie

Reputation: 41

I had the same issue and ended up adding the file to the .eslintignore file in the project root folder

Upvotes: 4

Related Questions