MCPcopy
hub / github.com/prettier/prettier / isScriptLikeTag

Function isScriptLikeTag

src/language-html/utilities/index.js:110–121  ·  view source on GitHub ↗
(node, options)

Source from the content-addressed store, hash-verified

108}
109
110function isScriptLikeTag(node, options) {
111 return (
112 node.kind === "element" &&
113 (node.fullName === "script" ||
114 node.fullName === "style" ||
115 node.fullName === "svg:style" ||
116 node.fullName === "svg:script" ||
117 (node.fullName === "mj-style" && options.parser === "mjml") ||
118 (isUnknownNamespace(node) &&
119 (node.name === "script" || node.name === "style")))
120 );
121}
122
123function canHaveInterpolation(node, options) {
124 return node.children && !isScriptLikeTag(node, options);

Callers 8

embedFunction · 0.90
printChildrenDocFunction · 0.90
shouldPreserveContentFunction · 0.85
canHaveInterpolationFunction · 0.85

Calls 1

isUnknownNamespaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…