(text, options)
| 22 | const formatWithCursor = withPlugins(core.formatWithCursor); |
| 23 | |
| 24 | async function format(text, options) { |
| 25 | const { formatted } = await formatWithCursor(text, { |
| 26 | ...options, |
| 27 | cursorOffset: -1, |
| 28 | }); |
| 29 | return formatted; |
| 30 | } |
| 31 | |
| 32 | async function check(text, options) { |
| 33 | return (await format(text, options)) === text; |
no test coverage detected
searching dependent graphs…