Switch html-tag-names to @prettier/html-tags (#17408)
This commit is contained in:
1 parent
0d10f1f846
commit
45d3498377
7 files changed
+17
-22
No files matched your search
+1
-1
@@ -36,6 +36,7 @@
|
||||
"@babel/types": "7.27.0",
|
||||
"@glimmer/syntax": "0.94.9",
|
||||
"@prettier/cli": "0.7.1",
|
||||
"@prettier/html-tags": "1.0.0",
|
||||
"@prettier/parse-srcset": "3.1.0",
|
||||
"@typescript-eslint/typescript-estree": "8.30.1",
|
||||
"@typescript-eslint/visitor-keys": "8.30.1",
|
||||
@@ -64,7 +65,6 @@
|
||||
"graphql": "16.10.0",
|
||||
"hermes-parser": "0.27.0",
|
||||
"html-element-attributes": "3.4.0",
|
||||
"html-tag-names": "2.1.0",
|
||||
"html-ua-styles": "0.0.8",
|
||||
"ignore": "7.0.3",
|
||||
"import-meta-resolve": "4.1.0",
|
||||
|
||||
@@ -17,7 +17,7 @@ import { parseIeConditionalComment } from "./conditional-comment.js";
|
||||
import { locEnd, locStart } from "./loc.js";
|
||||
import { hasIgnorePragma, hasPragma } from "./pragma.js";
|
||||
import HTML_ELEMENT_ATTRIBUTES from "./utils/html-elements-attributes.evaluate.js";
|
||||
import HTML_TAGS from "./utils/html-tag-names.evaluate.js";
|
||||
import HTML_TAGS from "./utils/html-tags.evaluate.js";
|
||||
import isUnknownNamespace from "./utils/is-unknown-namespace.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import { htmlTagNames } from "html-tag-names";
|
||||
|
||||
const HTML_TAGS = new Set(htmlTagNames);
|
||||
|
||||
export default HTML_TAGS;
|
||||
@@ -0,0 +1,5 @@
|
||||
import htmlTags from "@prettier/html-tags";
|
||||
|
||||
const HTML_TAGS = new Set(htmlTags);
|
||||
|
||||
export default HTML_TAGS;
|
||||
@@ -207,11 +207,6 @@ exports[`htmlTagNames 1`] = `
|
||||
"tagName": "dt",
|
||||
"whiteSpace": "normal",
|
||||
},
|
||||
{
|
||||
"display": "inline",
|
||||
"tagName": "element",
|
||||
"whiteSpace": "normal",
|
||||
},
|
||||
{
|
||||
"display": "inline",
|
||||
"tagName": "em",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { htmlTagNames } from "html-tag-names";
|
||||
import htmlTags from "@prettier/html-tags";
|
||||
import {
|
||||
CSS_DISPLAY_DEFAULT,
|
||||
CSS_DISPLAY_TAGS,
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
|
||||
// Snapshot to notify changes
|
||||
test("htmlTagNames", () => {
|
||||
const data = htmlTagNames.map((tagName) => ({
|
||||
const data = htmlTags.map((tagName) => ({
|
||||
tagName,
|
||||
display: CSS_DISPLAY_TAGS[tagName] ?? CSS_DISPLAY_DEFAULT,
|
||||
whiteSpace: CSS_WHITE_SPACE_TAGS[tagName] ?? CSS_WHITE_SPACE_DEFAULT,
|
||||
|
||||
@@ -1996,6 +1996,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@prettier/html-tags@npm:1.0.0":
|
||||
version: 1.0.0
|
||||
resolution: "@prettier/html-tags@npm:1.0.0"
|
||||
checksum: 10/46d6657640ebe806fdacfb5a1953daad45f036af980dee0d8d7e778f89738b2501aa8d5566d22c4892af6ad91e9d1ed58a04e927713be38600e842a62015c577
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@prettier/parse-srcset@npm:3.1.0":
|
||||
version: 3.1.0
|
||||
resolution: "@prettier/parse-srcset@npm:3.1.0"
|
||||
@@ -4784,13 +4791,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"html-tag-names@npm:2.1.0":
|
||||
version: 2.1.0
|
||||
resolution: "html-tag-names@npm:2.1.0"
|
||||
checksum: 10/96c045ea2afb6c580249fd155275a6d3d362bbc4d2cc0eb6b53cdb7cdc9bf7595aba73cf3dba51ff49ef1b856264feace4b4e941dbffad58e77a87f6f48bdc4b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"html-ua-styles@npm:0.0.8":
|
||||
version: 0.0.8
|
||||
resolution: "html-ua-styles@npm:0.0.8"
|
||||
@@ -7004,6 +7004,7 @@ __metadata:
|
||||
"@eslint/js": "npm:9.24.0"
|
||||
"@glimmer/syntax": "npm:0.94.9"
|
||||
"@prettier/cli": "npm:0.7.1"
|
||||
"@prettier/html-tags": "npm:1.0.0"
|
||||
"@prettier/parse-srcset": "npm:3.1.0"
|
||||
"@stylistic/eslint-plugin-js": "npm:4.2.0"
|
||||
"@types/estree": "npm:1.0.7"
|
||||
@@ -7056,7 +7057,6 @@ __metadata:
|
||||
graphql: "npm:16.10.0"
|
||||
hermes-parser: "npm:0.27.0"
|
||||
html-element-attributes: "npm:3.4.0"
|
||||
html-tag-names: "npm:2.1.0"
|
||||
html-ua-styles: "npm:0.0.8"
|
||||
ignore: "npm:7.0.3"
|
||||
import-meta-resolve: "npm:4.1.0"
|
||||
|
||||
Reference in new issue
Block a user