visit
First of all, when you are new to eslint and want to auto-fix your JavaScript files, so you run
npx eslint --fix .
but, you have this main.js that webpack kindly generated for you to make your code separated by modules, work.
So, you get this result:We need to create a file in the root directory called .eslintignore
As you can see, the only line of code that you need to write is dist/main.js
And that's it, next time you use
npx eslint .
or npx eslint --fix .
eslint will ignore this file.
If you want to check it out directly from the official documentation, go to the next link //eslint.org/docs/user-guide/configuring#ignoring-files-and-directories