Marshall Bowers
445f51709e
Fix indentation for JSDoc comments ( #2470 )
...
* Fix TypeScript comment snapshot
* Add failing test for TypeScript method comments
* Remove trailing space in comment
* Add snapshot for comment with many lines
* Add TODO marking potential location for comment re-indentation
* Update snapshot
* Indent comments based on the parent node
* Only adjust indentation if the comment looks like a JSDoc comment
* Only strip leading spaces when adjusting comment indentation
* Update snapshot
* Add test to show incorrect indentation based on parent node
* Update snapshot
* Update snapshot
* Update comment indentation to not rely on the parent node
* Extract code for getting the indent size
* Add test where the parent indentation changes as well
* Fix lint warning regarding lexical declarations within case block
* Update lockfile
* Update snapshot
* Add test case for block comment inside of a method
* Replace spread operator with `concat`
* Use `align` instead of `addAlignmentToDoc`
* Add test for mismatched indentation within JSDoc comment
* Always add a leading space to subsequent lines in a JSDoc comment
* Refactor JSDoc comment printing into a separate function
* Remove unneeded `align`
* Replace `forEach` with `map` for better style
* Only `trimLeft` when the end comment token is on the last line of the comment
* Remove unneeded `docBuilders`
* Add tests for JSDoc comments in JSX
* Update snapshots
2017-10-08 20:34:24 +11:00
..
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-10-08 20:34:24 +11:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-18 13:28:33 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-30 09:39:10 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-25 17:00:36 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-05-22 15:31:53 -07:00
2017-04-12 13:41:51 -07:00
2017-05-25 17:00:36 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 19:12:53 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 19:12:53 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-25 16:26:26 -07:00
2017-05-25 17:00:36 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-25 17:00:36 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-05-25 16:26:34 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-07-03 12:43:10 +02:00
2017-04-12 13:41:51 -07:00
2017-07-10 20:02:30 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-07-10 20:02:30 +01:00
2017-05-01 14:42:52 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-08-27 09:44:44 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-08-27 09:44:44 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-07-10 20:02:30 +01:00
2017-04-12 13:41:51 -07:00
2017-07-10 20:02:30 +01:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-30 09:39:10 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-01 14:42:52 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-05-01 14:39:15 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-09-25 12:45:40 +01:00
2017-09-25 12:45:40 +01:00
2017-04-12 13:41:51 -07:00
2017-05-25 16:26:26 -07:00
2017-05-20 03:16:28 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00
2017-04-12 13:41:51 -07:00