Today we are going to talk about eslint and webpack. This is not going to teach you how to install eslint in your project, I will assume that you already did. First of all, when you are new to and want to your JavaScript files, so you run but, you have this that webpack kindly generated for you to make your code separated by modules, work. eslint auto-fix npx eslint --fix . main.js So, you get this result: Even though the code still working, you are not going to pass eslint rules. We don’t need to check this file with eslint, so what do we do? 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 or eslint will this file. npx eslint . npx eslint --fix . ignore If you want to check it out directly from the official documentation, go to the next link https://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories Happy Coding! Social Media: Github