c863cbeac8
* Add test demonstrating SourceElement-relative cursor translation See https://github.com/prettier/prettier/issues/1981#issuecomment-306326739 * Translate cursor relative to nearest node, not SourceElement This partially address https://github.com/prettier/prettier/issues/1981 See https://github.com/prettier/prettier/issues/1981#issuecomment-306326739 * Add test demonstrating incorrect cursor translation Since the `cursorOffset` option (introduced in #1637) works by tracking the cursor position relative to an AST node (rather than a CST token), it can produce incorrect results. See https://github.com/prettier/prettier/issues/1981 |
||
---|---|---|
.. | ||
jsfmt.spec.js |