@html-eslint/eslint-plugin 0.53.0-alpha.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -9,7 +9,6 @@ const { name, version } = require("../package.json");
9
9
  const parser = require("@html-eslint/parser");
10
10
  /** @import {ESLint} from "eslint" */
11
11
 
12
- /** @type {ESLint.Plugin} */
13
12
  const plugin = {
14
13
  meta: {
15
14
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-eslint/eslint-plugin",
3
- "version": "0.53.0-alpha.0",
3
+ "version": "0.53.0",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for HTML",
6
6
  "author": "yeonjuan",
@@ -40,10 +40,10 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@eslint/plugin-kit": "^0.4.1",
43
- "@html-eslint/parser": "^0.53.0-alpha.0",
44
- "@html-eslint/template-parser": "^0.53.0-alpha.0",
45
- "@html-eslint/template-syntax-parser": "^0.53.0-alpha.0",
46
- "@html-eslint/types": "^0.53.0-alpha.0"
43
+ "@html-eslint/parser": "^0.53.0",
44
+ "@html-eslint/template-parser": "^0.53.0",
45
+ "@html-eslint/template-syntax-parser": "^0.53.0",
46
+ "@html-eslint/types": "^0.53.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "eslint": "^8.0.0 || ^9.0.0"
@@ -59,5 +59,5 @@
59
59
  "engines": {
60
60
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
61
61
  },
62
- "gitHead": "0739c592dbc3129713e89cd92bc16be62c12164d"
62
+ "gitHead": "915ff9f1c39e9c47bf94e1bd6d8ef896d895c2d4"
63
63
  }
package/types/index.d.ts CHANGED
@@ -1,6 +1,68 @@
1
- export = plugin;
2
- /** @import {ESLint} from "eslint" */
3
- /** @type {ESLint.Plugin} */
4
- declare const plugin: ESLint.Plugin;
1
+ import { name } from "../package.json";
2
+ import { version } from "../package.json";
3
+ import rules = require("./rules");
5
4
  import type { ESLint } from "eslint";
5
+ import parser = require("@html-eslint/parser");
6
+ export declare namespace meta {
7
+ export { name };
8
+ export { version };
9
+ }
10
+ export declare namespace languages {
11
+ let html: import("./languages/html-language").HTMLLanguageType;
12
+ }
13
+ export { rules };
14
+ export declare let configs: {
15
+ recommended: {
16
+ rules: {
17
+ "html/require-lang": "error";
18
+ "html/require-img-alt": "error";
19
+ "html/require-doctype": "error";
20
+ "html/require-title": "error";
21
+ "html/no-multiple-h1": "error";
22
+ "html/no-extra-spacing-attrs": "error";
23
+ "html/attrs-newline": "error";
24
+ "html/element-newline": ["error", {
25
+ inline: string[];
26
+ }];
27
+ "html/no-duplicate-id": "error";
28
+ "html/indent": "error";
29
+ "html/require-li-container": "error";
30
+ "html/quotes": "error";
31
+ "html/no-obsolete-tags": "error";
32
+ "html/no-obsolete-attrs": "error";
33
+ "html/require-closing-tags": "error";
34
+ "html/no-duplicate-attrs": "error";
35
+ "html/use-baseline": "error";
36
+ "html/no-duplicate-in-head": "error";
37
+ };
38
+ plugins: {};
39
+ };
40
+ "recommended-legacy": {
41
+ rules: Record<string, "error" | ["error", {
42
+ inline: string[];
43
+ }]>;
44
+ };
45
+ "flat/recommended": {
46
+ plugins: {
47
+ /** @type {ESLint.Plugin} */
48
+ readonly "@html-eslint": ESLint.Plugin;
49
+ };
50
+ languageOptions: {
51
+ parser: typeof parser;
52
+ };
53
+ rules: Record<string, "error" | ["error", {
54
+ inline: string[];
55
+ }]>;
56
+ };
57
+ "flat/all": {
58
+ plugins: {
59
+ /** @type {ESLint.Plugin} */
60
+ readonly "@html-eslint": ESLint.Plugin;
61
+ };
62
+ languageOptions: {
63
+ parser: typeof parser;
64
+ };
65
+ rules: Record<string, "error">;
66
+ };
67
+ };
6
68
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";AASA,qCAAqC;AAErC,4BAA4B;AAC5B,sBADW,aAAa,CA2CtB;4BA7CwB,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";;;4BAS0B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqB1B,4BAA4B;qCAAjB,aAAa;;;;;;;;;;;YAYxB,4BAA4B;qCAAjB,aAAa"}