@html-eslint/eslint-plugin 0.53.0 → 0.54.1

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.
@@ -1,10 +1,17 @@
1
1
  const rules = require("../rules");
2
+ const ruleKeys = Object.keys(rules);
2
3
 
3
- const allRules = Object.keys(rules).reduce((acc, ruleName) => {
4
+ const allRulesLegacy = ruleKeys.reduce((acc, ruleName) => {
4
5
  acc[`@html-eslint/${ruleName}`] = "error";
5
6
  return acc;
6
7
  }, /** @type {Record<string, "error">} */ ({}));
7
8
 
9
+ const allRules = ruleKeys.reduce((acc, ruleName) => {
10
+ acc[`html/${ruleName}`] = "error";
11
+ return acc;
12
+ }, /** @type {Record<string, "error">} */ ({}));
13
+
8
14
  module.exports = {
15
+ allRulesLegacy,
9
16
  allRules,
10
17
  };
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@ const {
3
3
  recommendedRules,
4
4
  recommendedLegacyRules,
5
5
  } = require("./configs/recommended");
6
- const { allRules } = require("./configs/all");
6
+ const { allRules, allRulesLegacy } = require("./configs/all");
7
7
  const { HTMLLanguage } = require("./languages/html-language");
8
8
  const { name, version } = require("../package.json");
9
9
  const parser = require("@html-eslint/parser");
@@ -23,6 +23,10 @@ const plugin = {
23
23
  rules: recommendedRules,
24
24
  plugins: {},
25
25
  },
26
+ all: {
27
+ rules: allRules,
28
+ plugins: {},
29
+ },
26
30
  ["recommended-legacy"]: {
27
31
  rules: recommendedLegacyRules,
28
32
  },
@@ -48,7 +52,7 @@ const plugin = {
48
52
  languageOptions: {
49
53
  parser,
50
54
  },
51
- rules: allRules,
55
+ rules: allRulesLegacy,
52
56
  },
53
57
  },
54
58
  };
@@ -95,7 +95,7 @@ const elements = new Map([
95
95
  ["col.align", "0:"],
96
96
  ["col.char", "0:"],
97
97
  ["col.charoff", "0:"],
98
- ["col.span", "0:"],
98
+ ["col.span", "10:2015"],
99
99
  ["col.valign", "0:"],
100
100
  ["col.width", "0:"],
101
101
  ["colgroup", "10:2015"],
@@ -272,6 +272,7 @@ const elements = new Map([
272
272
  ["input.size", "10:2015"],
273
273
  ["input.src", "10:2015"],
274
274
  ["input.step", "10:2015"],
275
+ ["input.switch", "0:"],
275
276
  ["input.type_button", "10:2015"],
276
277
  ["input.type_checkbox", "10:2015"],
277
278
  ["input.type_color", "0:"],
@@ -503,6 +504,7 @@ const elements = new Map([
503
504
  ["template.shadowrootclonable", "5:2024"],
504
505
  ["template.shadowrootdelegatesfocus", "5:2024"],
505
506
  ["template.shadowrootmode", "5:2024"],
507
+ ["template.shadowrootreferencetarget", "0:"],
506
508
  ["template.shadowrootserializable", "0:"],
507
509
  ["textarea", "10:2015"],
508
510
  ["textarea.autocomplete", "10:2020"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-eslint/eslint-plugin",
3
- "version": "0.53.0",
3
+ "version": "0.54.1",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for HTML",
6
6
  "author": "yeonjuan",
@@ -40,13 +40,13 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@eslint/plugin-kit": "^0.4.1",
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"
43
+ "@html-eslint/parser": "^0.54.0",
44
+ "@html-eslint/template-parser": "^0.54.0",
45
+ "@html-eslint/template-syntax-parser": "^0.54.0",
46
+ "@html-eslint/types": "^0.54.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "eslint": "^8.0.0 || ^9.0.0"
49
+ "eslint": ">=8.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@eslint/core": "^1.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": "915ff9f1c39e9c47bf94e1bd6d8ef896d895c2d4"
62
+ "gitHead": "967a7339ce5481ec414b84f41804b5c18abdfb7a"
63
63
  }
@@ -1,2 +1,3 @@
1
+ export const allRulesLegacy: Record<string, "error">;
1
2
  export const allRules: Record<string, "error">;
2
3
  //# sourceMappingURL=all.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../lib/configs/all.js"],"names":[],"mappings":"AAEA,+CAGgD"}
1
+ {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../lib/configs/all.js"],"names":[],"mappings":"AAGA,qDAGgD;AAEhD,+CAGgD"}
package/types/index.d.ts CHANGED
@@ -37,6 +37,10 @@ export declare let configs: {
37
37
  };
38
38
  plugins: {};
39
39
  };
40
+ all: {
41
+ rules: Record<string, "error">;
42
+ plugins: {};
43
+ };
40
44
  "recommended-legacy": {
41
45
  rules: Record<string, "error" | ["error", {
42
46
  inline: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";;;4BAS0B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqB1B,4BAA4B;qCAAjB,aAAa;;;;;;;;;;;YAYxB,4BAA4B;qCAAjB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.js"],"names":[],"mappings":";;;4BAS0B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyB1B,4BAA4B;qCAAjB,aAAa;;;;;;;;;;;YAYxB,4BAA4B;qCAAjB,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/baseline.js"],"names":[],"mappings":"AAKA,2CAkkBG;AACH,mDA4BG;AApmBH,uDAAuD;AACvD,4BAAsB,EAAE,CAAC;AACzB,2BAAqB,CAAC,CAAC;AACvB,6BAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../../lib/rules/utils/baseline.js"],"names":[],"mappings":"AAKA,2CAokBG;AACH,mDA4BG;AAtmBH,uDAAuD;AACvD,4BAAsB,EAAE,CAAC;AACzB,2BAAqB,CAAC,CAAC;AACvB,6BAAuB,CAAC,CAAC"}