Linting external JavaScript files
Author: smaresCreated Feb 22, 2018Updated Dec 12, 2020
Labelsenhancement
I have a quick question: Noticing that my external JavaScript files are not processed by ESLint, I stumbled upon https://github.com/vuejs-templates/webpack/issues/716 that is now closed, but has the valuable last comment to add `preLoaders: { js: 'eslint-loader' }` to `vue-loader.conf.js` which fixed my problem. A quick look at the file on GitHub shows that the current `vue-loader.conf.js` is still missing that line. I am using a slightly older version of the template in my project, so I am now wondering why `preLoaders: { js: 'eslint-loader' }` still did not make it into the current template - is it not needed anymore because of other loaders being used?
Source: vuejs-templates/webpack