prettier/tests
Christopher Chedeau 8f9bb3a223 Break inline object first in function arguments (#1453)
This is getting subtle where the groups need to be in a precise position but that works :)

Fixes #1409
2017-05-01 14:49:03 -07:00
..
array_spread Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
arrays Don't break on empty arrays and objects (#1440) 2017-05-01 14:41:18 -07:00
arrow-call Break class expression returned by arrow call (#1464) 2017-04-30 17:49:31 -07:00
arrows Break class expression returned by arrow call (#1464) 2017-04-30 17:49:31 -07:00
assignment Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
assignment_comments Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
assignment_expression Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
async Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
binary-expressions Only break for conditionals (#1350) 2017-04-19 13:18:01 -07:00
binary_math Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
bracketSpacing Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
break-calls Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
class_comment Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
class_extends Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
classes Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
comments Preserve inline comment as last argument (#1390) 2017-05-01 14:29:03 -07:00
computed_props Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
conditional Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
decorators Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
directives Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
do Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
dynamic_import Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
empty_paren_comment Fix duplicate comments in classes (#1349) 2017-04-19 11:59:23 -07:00
empty_statement Fix empty line in block with EmptyStatement (#1375) 2017-04-22 07:57:52 -07:00
es6modules Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
exact_object Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
export Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
export_default Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
export_extension Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
exports Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
expression_statement Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
first_argument_expansion Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow Reorder flow object props (#1451) 2017-05-01 14:42:52 -07:00
flow_array_comments Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_array_union Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_comments Stabilize comments on ObjectTypeAnnotation (#1214) 2017-04-12 14:13:34 -07:00
flow_function_parentheses Don't break for unparenthesised single argument flow function (#1452) 2017-05-01 14:39:46 -07:00
flow_generic Inline nullable in flow generics (#1426) 2017-04-26 09:27:06 -07:00
flow_import_type_specifier Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_method Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_object_comment Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_object_order Reorder flow object props (#1451) 2017-05-01 14:42:52 -07:00
flow_return_arrow Fix optional flow parenthesis (#1357) 2017-04-24 16:58:30 -04:00
flow_type_declarations Allow flow declarations to break on StringLiteralTypeAnnotations (#1437) 2017-04-27 11:21:42 -07:00
for Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
function Break inline object first in function arguments (#1453) 2017-05-01 14:49:03 -07:00
function_single_destructuring Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
if Fix own line last if comment (#1219) 2017-04-12 17:26:44 -07:00
ignore Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
import Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
interface Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
intersection Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00
jsx-multiline-assign Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx-newlines Ensure JSXOpeningElement does not break with single text attr on Babylon (#1229) 2017-04-13 07:09:40 -07:00
jsx-significant-space Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx-split-attrs Ensure JSXOpeningElement does not break with single text attr on Babylon (#1229) 2017-04-13 07:09:40 -07:00
jsx-stateless-arrow-fn Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx_escape Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00
jsx_last_line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx_template Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
label Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
last_argument_expansion Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450) 2017-05-01 14:32:52 -07:00
line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
line_suffix_boundary Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
literal Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
member Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
method-chain Do not break on [0] (#1441) 2017-05-01 14:41:34 -07:00
new_expression Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
newline Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
no-semi Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00
no-semi-babylon-extensions Require '::a.b' to have a preceding ; in no-semi style (#1442) 2017-04-27 14:00:04 -07:00
object-prop-break-in Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
object_colon_bug Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
object_property_comment Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
objects Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
optional-type-name Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
performance Bail when traversing === groups (#1294) 2017-04-18 08:39:47 -07:00
preserve_line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
quotes Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00
regex Improve regex printing (#1341) 2017-04-19 10:24:13 -07:00
require Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
rest Fix trailing comma for rest element in Babylon (#1230) 2017-04-13 07:10:08 -07:00
return Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
shebang Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
strings [RFC] Do not indent calls with a single template literal argument (#873) 2017-05-01 14:27:00 -07:00
switch Fix isPreviousLineEmpry on Windows (#1263) 2017-04-14 16:02:19 -07:00
tabWith Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
template Proper indentation for template literals (#1385) 2017-05-01 14:28:11 -07:00
template_align Proper indentation for template literals (#1385) 2017-05-01 14:28:11 -07:00
ternaries Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450) 2017-05-01 14:32:52 -07:00
test_declarations Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
trailing_comma Fix function trailing comment location (#1195) 2017-04-12 14:18:29 -07:00
trailing_whitespace Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
try Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
typescript [WIP] add TSNamespaceExportDeclaration (#1459) 2017-05-01 09:25:49 -07:00
unary Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
unary_expression Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
unicode Upgrade flow parser to 0.45 (#1447) 2017-04-27 14:59:18 -07:00
union_intersection Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
update_expression Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
variable_declarator Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
while fix do-while break (#1373) 2017-04-21 08:03:53 -07:00
windows Fix windows line ending on template literals (#1439) 2017-05-01 14:39:03 -07:00
yield Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00