prettier/tests
Royce Townsend 9eb389b9f4 Group first arg for inline functions (#947)
* Group first arg for inline functions

* Group first arg. Unless there are comments.

* Group first arg. Allow second arg to be empty object/array.

This implementation has a side effect of disallowing empty objects/arrays in the should group last arg heuristic.
2017-03-18 11:20:07 -07:00
..
array_spread [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
arrays [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
arrows Inline class expressions for bracket-less arrow functions (#1023) 2017-03-17 14:01:17 -04:00
assignment [RFC] Add softline to assignment of binary expressions (#871) 2017-03-15 09:45:40 -07:00
assignment_comments re-run snapshot tests 2017-03-15 18:54:34 -07:00
assignment_expression Remove parens from chained assignments (#967) 2017-03-09 09:17:16 -08:00
async [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
binary-expressions [RFC] Add softline to assignment of binary expressions (#871) 2017-03-15 09:45:40 -07:00
bracketSpacing [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
break-calls Add breakParent support for willBreak (#674) 2017-03-17 13:51:22 -04:00
class_comment [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
class_extends [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
classes Parenthesize function expressions in expression position (#941) 2017-03-07 18:53:42 -08:00
comments Preserve comment position for last arg or method (#1025) 2017-03-17 14:00:01 -04:00
computed_props [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
conditional [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
decorators Fix dot notation in decorators (#1029) 2017-03-16 13:27:20 -07:00
directives [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
do Properly support `do` (#811) 2017-02-27 10:49:08 -05:00
dynamic_import Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
empty_paren_comment Make comments around empty parenthesis be inside (#957) 2017-03-09 07:55:18 -08:00
empty_statement [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
es6modules Keep parenthesis on export default function (#844) 2017-03-02 22:39:22 -05:00
export [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
export_default [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
export_extension Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
exports Fix exports (#998) 2017-03-15 16:29:15 -07:00
expression_statement Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
first_argument_expansion Group first arg for inline functions (#947) 2017-03-18 11:20:07 -07:00
flow Group first arg for inline functions (#947) 2017-03-18 11:20:07 -07:00
flow_comments Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
flow_method Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
for Fix for of/in comment on its own line around in/of (#901) 2017-03-09 11:10:55 -08:00
function [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
if Separate `if` and `else` groups (fixes #616) (#1032) 2017-03-17 14:02:35 -07:00
ignore Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
import Fix import declaration comments (#1030) 2017-03-17 08:11:43 -07:00
interface Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
jsx re-run snapshot tests 2017-03-15 18:54:34 -07:00
jsx-multiline-assign [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
jsx-newlines [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
jsx-significant-space [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
jsx-split-attrs [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
jsx-stateless-arrow-fn [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
jsx_escape Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
jsx_last_line [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
label [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
last_argument_expansion Group first arg for inline functions (#947) 2017-03-18 11:20:07 -07:00
line [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
line_suffix_boundary Introduce line-suffix-boundary (#750) 2017-02-23 09:26:26 -08:00
literal Fix 0.5e0 (#911) 2017-03-06 03:44:05 -08:00
member [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
method-chain Only allow same-line arrow-less body for explicit nodes (#966) 2017-03-09 09:08:12 -08:00
new_expression [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
object-prop-break-in [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
object_colon_bug [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
object_property_comment Stabilize comment after object label (#958) 2017-03-09 07:55:35 -08:00
objects Do not respect newlines for object destructuring pattern (#981) 2017-03-14 18:36:35 -07:00
optional-type-name No parenthesis for Flow shorthand with one arg (#972) 2017-03-16 10:32:59 -07:00
preserve_line [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
quotes Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
require [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
rest Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
shebang [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
strings Eagerly evaluate `ifBreak` when processing template literals (fixes #795) (#798) 2017-02-23 21:21:13 -08:00
switch [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
tabWith Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
template [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
ternaries [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
test_declarations Do not break long `describe` calls (#953) 2017-03-08 13:24:28 -08:00
trailing_comma [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
trailing_whitespace Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
try [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
unary [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
unary_expression [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
unicode Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
union_intersection Upgrade to Jest 19 (#762) 2017-02-21 13:59:19 -08:00
update_expression [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
while [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
windows [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00
yield [WIP] TypeScript Parser (#915) 2017-03-08 13:18:13 -08:00