Skip to content

PaperStrike/eslint-processor-html

Repository files navigation

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

About

Simple ESLint HTML processor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published