Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

eslint-processor-html

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-processor-html

ESLint HTML processor

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 02 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts