1.0.2 • Published 2 years ago

html-mixed-linter v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

html-mixed-linter

A linter for HTML code with embedded CSS and JavaScript.

Installation

npm install html-mixed-linter

Usage

Integrating with CodeMirror

To integrate html-mixed-linter with CodeMirror, follow these steps:

  1. Import the necessary modules in your JavaScript file:
import { htmlLinter, cssLinter, jsLinter } from 'html-mixed-linter';
const editor = new EditorView({
  extensions: [
    // ... other extensions ...
    linter(htmlLinter),
    linter(cssLinter),
    linter(jsLinter)
  ],
  // ... other configurations ...
});

Start writing your HTML code with embedded CSS and JavaScript in the CodeMirror editor. Any linting errors or warnings will be displayed.

1.0.2

2 years ago

1.0.1

2 years ago