Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.16 KB

eslint-processor-html

npm

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.

Usage

Installing

npm i -D eslint-processor-html

Configuration

// eslint.config.mjs
import htmlProcessor from 'eslint-processor-html'

export default [
  {
    files: ['**/*.html', '**/*.htm'],
    processor: htmlProcessor(),
  },
]

Thanks

Can't write one so quick without them.

License

ISC