(node)
| 81 | } |
| 82 | |
| 83 | function hasPrettierIgnore(node) { |
| 84 | /* c8 ignore next 3 */ |
| 85 | if (node.kind === "attribute") { |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | /* c8 ignore next 3 */ |
| 90 | if (!node.parent) { |
| 91 | return false; |
| 92 | } |
| 93 | |
| 94 | if (!node.prev) { |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | return isPrettierIgnore(node.prev); |
| 99 | } |
| 100 | |
| 101 | function isPrettierIgnore(node) { |
| 102 | return node.kind === "comment" && node.value.trim() === "prettier-ignore"; |
no test coverage detected
searching dependent graphs…