MCPcopy
hub / github.com/prettier/prettier / getPrettierIgnoreAttributeCommentData

Function getPrettierIgnoreAttributeCommentData

src/language-html/print/tag.js:194–206  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

192}
193
194function getPrettierIgnoreAttributeCommentData(value) {
195 const match = value.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);
196
197 if (!match) {
198 return false;
199 }
200
201 if (!match[1]) {
202 return true;
203 }
204
205 return match[1].split(/\s+/);
206}
207
208function needsToBorrowParentOpeningTagEndMarker(node) {
209 /**

Callers 1

printAttributesFunction · 0.85

Calls 3

splitMethod · 0.80
matchMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…