Detalhes do pacote

eslint-processor-html

PaperStrike13ISC1.0.1

ESLint HTML processor

eslint, processor, html

readme (leia-me)

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