I encountered a situation where ESLint reported nearly 200 errors when I tried to load a JavaScript file written by someone else.
Since there were too many errors, I decided to exclude it from ESLint checks.
I thought creating an .eslintignore
file like this would work, but the errors persisted:
src/lib/*
**/*.js
foo.js
In the end, I solved it by adding /* eslint-disable */
at the top of the specific file I wanted to ignore:
/* eslint-disable */
import test from '../test'