ESLint HTML processor. Extracts out the following from HTML files for other ESLint plugins to lint:
.js
,.mjs
,.json
, based on<script>
types.css
,.less
,.scss
,.sass
,.styl
, based on<style>
langs
Supports autofix and suggestions.
npm i -D eslint-processor-html
// eslint.config.mjs
import htmlProcessor from 'eslint-processor-html'
export default [
{
files: ['**/*.html', '**/*.htm'],
processor: htmlProcessor(),
},
]
- htmlparser2
- html-eslint
- eslint-processor-vue-blocks
- @eslint/markdown
- eslint-plugin-html
- @nice-move/eslint-plugin-html
Can't write one so quick without them.
ISC