I have a Javascript browser project split over multiple files and can\'t get ESLint to lint the script tags of my HTML file under the same global scope so that declarations and
Use eslint-plugin-html:
npm install eslint-plugin-html --save-dev
in your Terminal..eslintrc.js
and add there plugins: ["html"]
right after module.exports
. If you have .json
or different format than the .js
then just follow the pattern and add the same values on the same nesting level../node_modules/.bin/eslint --ext .html .
in your terminal.