open-index/open-npm huggingface dataset:
npm package: @html-eslint/core
Description: Core HTML validation logic for html-eslint
Author: yeonjuan
Latest version: 0.59.0

# @html-eslint/core

Core HTML validation logic for html-eslint.

## Overview

This package provides framework-agnostic HTML validation utilities that can be used across different ESLint plugins (Angular, Svelte, etc.).

## Installation

```bash
npm install @html-eslint/core
```

## Usage

```javascript
import { noInvalidAttrValue } from "@html-eslint/core";

// Create a rule instance with options
const rule = noInvalidAttrValue({
  allow: [{ tag: "img", attr: "src", valuePattern: "^https://.*" }],
});

// Validate attributes using an adapter
const result = rule.checkAttributes(elementAdapter);
```

## License

MIT
npm package: @html-eslint/eslint-plugin
Description: ESLint plugin for HTML
Author: yeonjuan
Latest version: 0.59.0

# `@html-eslint/eslint-plugin`

An ESLint plugin which provides lint rules for HTML.

1. [Getting Started](https://yeonjuan.github.io/html-eslint/docs/getting-started)
   - [Installation](https://yeonjuan.github.io/html-eslint/docs/getting-started#installation)
   - [Configuration](https://yeonjuan.github.io/html-eslint/docs/getting-started#configuration)
   - [Editor Configuration](https://yeonjuan.github.io/html-eslint/docs/getting-started#editor-configuration)
     - [VSCode](https://yeonjuan.github.io/html-eslint/docs/getting-started#vscode)
1. [Recommended Configs](https://yeonjuan.github.io/html-eslint/docs/getting-started#recommended-configs)
1. [Rules](https://yeonjuan.github.io/html-eslint/docs/rules)
1. [CLI](https://yeonjuan.github.io/html-eslint/docs/cli)
1. [Playground](https://yeonjuan.github.io/html-eslint/playground)
1. [License](#License)

## License

Distributed under the MIT License.
npm package: @html-eslint/eslint-plugin-angular-template
Description: ESLint plugin for HTML with Angular support
Author: yeonjuan
Latest version: 0.59.0

# @html-eslint/eslint-plugin-angular

ESLint plugin for HTML with Angular template support.

## Installation

```bash
npm install --save-dev @html-eslint/eslint-plugin-angular @angular-eslint/template-parser
```

## Usage

```js
// eslint.config.js
const angularPlugin = require("@html-eslint/eslint-plugin-angular");
const templateParser = require("@angular-eslint/template-parser");

module.exports = [
  {
    files: ["**/*.html"],
    languageOptions: {
      parser: templateParser,
    },
    plugins: {
      "@html-eslint/angular": angularPlugin,
    },
    rules: {
      "@html-eslint/angular/use-baseline": "warn",
    },
  },
];
```

Or use the recommended config:

```js
// eslint.config.js
const angularPlugin = require("@html-eslint/eslint-plugin-angular");
const templateParser = require("@angular-eslint/template-parser");

module.exports = [
  {
    files: ["**/*.html"],
    languageOptions: {
      parser: templateParser,
    },
    ...angularPlugin.configs.recommended,
  },
];
```

## Rules

| Rule                                                                    | Description                          | Recommended |
| ----------------------------------------------------------------------- | ------------------------------------ | ----------- |
| [use-baseline](https://html-eslint.org/docs/angular/rules/use-baseline) | Enforce the use of baseline features | ✅          |
npm package: @html-eslint/eslint-plugin-react
Description: ESLint plugin for HTML with React support
Author: yeonjuan
Latest version: 0.59.0

# `@html-eslint/eslint-plugin-react`

An ESLint plugin which provides lint rules for React.

1. [Getting Started](https://html-eslint.org/docs/react/getting-started)
1. [Rules](https://html-eslint.org/docs/react/rules)
1. [License](#License)

## License

Distributed under the MIT License.
npm package: @html-eslint/eslint-plugin-svelte
Description: ESLint plugin for HTML with Svelte support
Author: yeonjuan
Latest version: 0.59.0

# @html-eslint/eslint-plugin-svelte

ESLint plugin for HTML with Svelte support.

## Installation

```bash
npm install --save-dev @html-eslint/eslint-plugin-svelte
```

## Usage

### ESLint Flat Config

```js
import htmlSvelte from "@html-eslint/eslint-plugin-svelte";

export default [
  {
    plugins: {
      "@html-eslint/svelte": htmlSvelte,
    },
    rules: {
      // Add rules here
    },
  },
];
```

### Legacy Config

```js
module.exports = {
  plugins: ["@html-eslint/svelte"],
  rules: {
    // Add rules here
  },
};
```

## License

MIT
npm package: @html-eslint/parser
Description: Parser for @html-eslint/eslint-plugin
Author: yeonjuan
Latest version: 0.59.0

# `@html-eslint/parser`

A parser for HTML-ESLint.
It makes AST generated by [ES-HTML-parser](https://github.com/yeonjuan/es-html-parser) compatible with ESLint.

## Install

```bash
$ yarn add -D @html-eslint/parser
$ npm install -D @html-eslint/parser
```

## Usage

Set the `parser` property in your ESLint configuration file.

```json
{
  "parser": "@html-eslint/parser"
}
```

## License

MIT
npm package: @html-eslint/template-parser
Description: HTML parser for template literals 
Author: yeonjuan
Latest version: 0.59.0

# @html-eslint/template-parser

A parser that parses the html written inside a template literal.

## Usage

```js
const { parse } = require("@html-eslint/template-parser");
const espree = require("espree");
const { SourceCode } = require("eslint");

const code = `html\`<div
  id="\${ id }">
    \${text}
  </div>\`;`;

const ast = espree.parse(code, {
  range: true,
  loc: true,
  ecmaVersion: "latest",
});
const sourceCode = new SourceCode({
  text: code,
  ast: {
    ...ast,
    tokens: [],
    comments: ast.comments ?? [],
    loc: ast.loc,
    range: ast.range,
  },
});

const exp = ast.body[0].expression.quasi;
parse(exp, sourcecode, {
  Tag(node) {
    // ...
  },
  AttributeValue(node) {
    // ...
  },
});
```

## License

Distributed under the MIT License.