prettier/tests
Christian Wesselhoeft 87401de0a5 Handle +/- before numbers in CSS (#2713)
* src/util: Fix negative number handling

* src/util: Handle decimal numbers with leading plus sign

* src/util: Handle sign symbols before numbers in scientific notation
2017-08-30 20:26:11 +02:00
..
array_spread Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
arrays Fix boolean for empty objects (#1590) 2017-05-12 07:48:03 -07:00
arrow-call test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
arrows Preserve parens with keyof, enforce parens with arrows with type params (#2503) 2017-07-17 13:32:33 +02:00
arrows_bind fix(typescript): handle ObjectPattern instead of ObjectExpression inside BinaryExpression, fixes #2237 (#2238) 2017-06-23 07:53:42 -07:00
assignment test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
assignment_comments Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
assignment_expression test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
async chore(typescript): upgrade typescript-eslint-parser to 992f1fa (fixes #1769) (#1785) 2017-05-28 08:05:33 -07:00
binary-expressions Flatten x & y & z, and x ^ y ^ z, fixes #2445 (#2490) 2017-07-15 12:54:33 +02:00
binary_math Add supervisory parens for bitwise operations (#2429) 2017-07-08 17:31:28 +10:00
bind_expressions Improve bind expression formatting (#2493) 2017-07-16 11:47:06 +02:00
bracketSpacing Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -07:00
break-calls Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
class_comment Better fix for class comments (#2660) 2017-08-24 15:45:28 -07:00
class_extends Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
classes Comments: attach method name comments with estree parsers, fixes #2141 (#2170) 2017-06-17 22:22:39 +10:00
comments Fix fatal with empty jsx (#2663) 2017-08-24 18:02:44 -07:00
computed_props Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
conditional Handle conditions inside of a ternary (#2228) 2017-06-21 18:17:30 -07:00
css_atrule Normalize numbers in CSS like JS 2017-08-22 18:50:10 +02:00
css_attribute Quote unquoted CSS attribute values in selectors (#2644) 2017-08-22 09:45:15 -07:00
css_atword Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
css_bom Strip BOM before parsing, fixes #2362 (#2373) 2017-07-01 18:11:13 +02:00
css_colon Add support for value-colon (#1753) 2017-05-26 15:58:09 -07:00
css_color CSS: lowercase hex colors, closes #2139 (#2203) 2017-06-20 23:07:31 +10:00
css_combinator Trim whitespace in descendant combinator, fixes #2410 (#2411) 2017-07-06 13:55:34 +02:00
css_comment_in_if fix cut off line-break in scss between comment and followed @else (#2600) 2017-08-08 12:07:47 +10:00
css_comments Normalize quotes in CSS like in JS 2017-08-14 09:14:57 +02:00
css_composes Fix css-modules composes breaking with long line width (#2190) 2017-06-18 23:41:10 -10:00
css_empty Skip extra `;` (#1773) 2017-05-27 13:20:19 -07:00
css_extend Fix less &:extends when parsed with scss (#2034) 2017-06-07 12:40:36 -07:00
css_fill_value Use fill for CSS values (#2224) 2017-06-21 15:13:51 -07:00
css_import Work around issue #2584 (#2652) 2017-08-22 09:44:25 -07:00
css_important Add a test with all the less docs and fix issues (#1792) 2017-05-28 16:05:26 -07:00
css_indent Normalize quotes in CSS like in JS 2017-08-14 09:14:57 +02:00
css_inline_url Normalize quotes in CSS like in JS 2017-08-14 09:14:57 +02:00
css_less_docs Add a test with all the less docs and fix issues (#1792) 2017-05-28 16:05:26 -07:00
css_long_rule Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
css_loose Enable loose mode for postcss-values-parser (#1766) 2017-05-27 11:15:05 -07:00
css_media Allow long media rules to break (#2219) 2017-06-21 13:02:16 -07:00
css_numbers Handle +/- before numbers in CSS (#2713) 2017-08-30 20:26:11 +02:00
css_params CSS: Every selector is now printed in its own line (#2047) 2017-06-08 07:46:24 -07:00
css_parens Use fill for CSS values (#2224) 2017-06-21 15:13:51 -07:00
css_prefix Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
css_pseudo_call Initial CSS support (#1636) 2017-05-24 10:52:12 -07:00
css_quotes Adjust some more quotes in CSS 2017-08-17 08:59:56 +02:00
css_scss First try scss when there's an @import with comma (#2225) 2017-06-21 15:45:55 -07:00
css_selector_call Add a test with all the less docs and fix issues (#1792) 2017-05-28 16:05:26 -07:00
css_selector_list Trim whitespace in descendant combinator, fixes #2410 (#2411) 2017-07-06 13:55:34 +02:00
css_selector_string Print selector-string (#1759) 2017-05-26 15:54:39 -07:00
css_trailing_comma Ignore trailing comma from the ast (#1761) 2017-05-26 19:30:21 -07:00
cursor Don't insert a cursor placeholder for a value-less path (#2136) 2017-06-14 09:05:06 -07:00
decorators Fix interleaved comments in class decorators (#2661) 2017-08-24 16:04:02 -07:00
destructuring Upgrade typescript-eslint to 31ad3c (#1738) 2017-05-25 19:04:15 -07:00
directives fix(typescript): workaround - don't wrap directives in parens, fixes #2074 (#2107) 2017-06-11 19:10:56 -07:00
do Add parens around all string literals at top level (#1999) 2017-06-06 08:24:13 -07:00
dynamic_import Upgrade typescript to 2.4 (#2120) 2017-06-13 09:47:40 -07:00
empty test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
empty_paren_comment test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
empty_statement Fix empty line in block with EmptyStatement (#1375) 2017-04-22 07:57:52 -07:00
es6modules test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
exact_object Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
export Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -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 fix(typescript): workaround - don't wrap directives in parens, fixes #2074 (#2107) 2017-06-11 19:10:56 -07:00
first_argument_expansion test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
flow Print 3 or more chained calls on multiple lines (#2673) 2017-08-27 09:44:44 -07:00
flow_annotation Keep parens around FunctionTypeAnnotation inside ArrayTypeAnnotation (#2561) 2017-07-30 00:50:38 +10: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_class_field Add test for flow class field override (#1669) 2017-05-22 15:54:20 -07:00
flow_comments Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -07:00
flow_export Add support for flow export type star (#2542) 2017-07-26 09:00:20 +10:00
flow_function_parentheses Add parenthesis for single arg types with generics (#1814) 2017-05-29 16:59:45 -07:00
flow_generic Strip away unnecessary quotes in keys in type objects and interfaces (#2643) 2017-08-21 20:08:38 +10:00
flow_import_type_specifier fix(import): allow break with both default named import, fixes #2050 (#2096) 2017-06-10 21:55:21 -07:00
flow_jsx Re-enable flow-jsx-func-attr test (#2541) 2017-07-26 09:07:37 +10:00
flow_method Fix yet another form of class with the same ast (#1849) 2017-06-01 19:02:15 -07:00
flow_object_comment Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
flow_object_order Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -07:00
flow_return_arrow Fix optional flow parenthesis (#1357) 2017-04-24 16:58:30 -04:00
flow_type_declarations Add support for flow opaque types (#2543) 2017-07-25 19:47:54 -07:00
flow_type_spread Temporary fix comments inside of flow type spread (#1716) 2017-05-24 15:21:30 -07:00
flow_union Don't call shouldHugType for function arguments, fixes #2458 (#2496) 2017-07-16 11:53:01 +02:00
flow_variance Fix variance location (#2261) 2017-06-25 11:46:29 +10:00
for Don't force line break in empty loop bodies (#1815) 2017-05-30 09:39:10 -07:00
function test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
function_single_destructuring Don't call shouldHugType for function arguments, fixes #2458 (#2496) 2017-07-16 11:53:01 +02:00
graphql_arguments GraphQL: Use spaces instead of commas (#2303) 2017-06-27 18:13:07 -07:00
graphql_bracket_spacing Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_comments Fix master 2017-06-27 18:33:23 -07:00
graphql_definitions Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_directive_decl GraphQL: Fix directives separator (#2315) 2017-06-27 19:58:38 -07:00
graphql_directives Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_enum GraphQL: Implement Enum (#2310) 2017-06-27 19:20:53 -07:00
graphql_fields Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_fragments Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_hello Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_interface GraphQL: Implement interface (#2312) 2017-06-27 19:30:58 -07:00
graphql_kitchen_sink Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_lists GraphQL: Use spaces instead of commas (#2303) 2017-06-27 18:13:07 -07:00
graphql_object_type_def GraphQL: Print directives for field declarations (#2317) 2017-06-27 20:22:03 -07:00
graphql_objects GraphQL: Use spaces instead of commas (#2303) 2017-06-27 18:13:07 -07:00
graphql_scalar GraphQL: Implement scalar (#2313) 2017-06-27 19:34:25 -07:00
graphql_schema GraphQL: Implement schema (#2316) 2017-06-27 20:15:55 -07:00
graphql_trailing_comma GraphQL: Use spaces instead of commas (#2303) 2017-06-27 18:13:07 -07:00
graphql_union_types Add \n at the end of .graphql files (#2285) 2017-06-27 09:49:15 -07:00
graphql_variable_definitions GraphQL: Use spaces instead of commas (#2303) 2017-06-27 18:13:07 -07:00
html_basics Vue: pretty-print binding syntax (#2108) 2017-06-14 22:33:15 +10: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 Print {} in import if it's in the source, fixes #2145 (#2150) 2017-06-15 20:19:01 +10:00
import_meta Cleanup unused nodes, and turn on importMeta babylon plugin (#2498) 2017-07-16 23:59:49 +10:00
import_then Inline import('x') to avoid having trailing , (#2288) 2017-06-27 11:40:20 -07:00
interface Break on implements instead of extends (#1730) 2017-05-25 16:26:56 -07:00
intersection Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
json Use babylon.parseExpression for JSON (#2476) 2017-07-24 11:43:49 +10:00
jsx Improve JSX ternary formatting 2017-07-13 10:21:58 -06:00
jsx-multiline-assign Allow JSX lines to be recombined (#1831) 2017-06-22 09:19:44 -07:00
jsx-newlines Tweak to support FB translation pipeline (#2272) 2017-06-26 09:30:52 -07:00
jsx-significant-space Ensure there is a line break after leading JSX white space (#2348) 2017-07-03 12:43:10 +02:00
jsx-split-attrs Allow JSX lines to be recombined (#1831) 2017-06-22 09:19:44 -07:00
jsx-stateless-arrow-fn Improve JSX ternary formatting 2017-07-13 10:21:58 -06:00
jsx-text-wrap Ensure there is a line break after leading JSX white space (#2348) 2017-07-03 12:43:10 +02:00
jsx-whitespace Allow JSX lines to be recombined (#1831) 2017-06-22 09:19:44 -07:00
jsx_escape Allow JSX lines to be recombined (#1831) 2017-06-22 09:19:44 -07:00
jsx_ignore Put parenthesis after return when jsx is prettier-ignored (#2665) 2017-08-24 19:29:05 -07:00
jsx_last_line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
jsx_namespace Cleanup unused nodes, and turn on importMeta babylon plugin (#2498) 2017-07-16 23:59:49 +10:00
jsx_template Parse CSS in template literals (styled-jsx) (#1984) 2017-06-06 08:28:13 -07:00
label Don't force line break in empty loop bodies (#1815) 2017-05-30 09:39:10 -07:00
last_argument_expansion Improve JSX Formatting 2017-07-13 10:20:42 -06:00
line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
line_suffix_boundary test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
literal test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
literal-numeric-separator Bump babylon version (#2205) 2017-06-20 08:36:14 -07:00
member Print 3 or more chained calls on multiple lines (#2673) 2017-08-27 09:44:44 -07:00
method-chain Print 3 or more chained calls on multiple lines (#2673) 2017-08-27 09:44:44 -07:00
multiparser_comments Attach comments in multiparser (#2253) 2017-06-24 11:06:50 -07:00
multiparser_html_css Vue: pretty-print binding syntax (#2108) 2017-06-14 22:33:15 +10:00
multiparser_html_js Vue: pretty-print binding syntax (#2108) 2017-06-14 22:33:15 +10:00
multiparser_html_ts Forward originalText in multiparser (#2260) 2017-06-24 17:54:09 -07:00
multiparser_js_css Support styled.div.attr({})`...` (#2619) 2017-08-13 13:52:24 +10:00
multiparser_js_graphql Add `graphql.experimental` parsing for react-relay (#2116) 2017-06-12 17:16:17 -07:00
multiparser_text Forward originalText in multiparser (#2260) 2017-06-24 17:54:09 -07:00
multiparser_vue Vue: pretty-print binding syntax (#2108) 2017-06-14 22:33:15 +10:00
new_expression Fix parenthesis for call expression inside of member expression inside of new (#2035) 2017-06-07 12:40:27 -07:00
newline test(typescript): disable failing tests (#1782) 2017-05-27 18:22:32 -07:00
no-semi Protect SwitchCase statements from ASI (#2008) 2017-06-06 14:28:51 -07:00
no-semi-babylon-extensions Require semicolons before class props named 'in' or 'instanceof' (#1878) 2017-06-02 10:52:11 -07:00
non-strict Fix comments in non strict mode (#2114) 2017-06-12 09:50:51 -07:00
object-prop-break-in Break on Property with long value and Literal key (#1786) 2017-05-29 07:31:24 -07:00
object_colon_bug Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
object_property_comment Use the same breaking rules for assignment and object values (#1721) 2017-05-24 18:19:15 -07:00
objects Don't indent + in object value (#2227) 2017-06-21 15:58:12 -07:00
optional-type-name Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
optional_catch_binding Support TypeScript 2.5 RC (#2672) 2017-08-26 05:36:50 -07:00
optional_chaining Implement proposal-optional-chaining (#2572) 2017-08-03 17:38:02 +10:00
performance Add caching for printing (#2259) 2017-06-24 14:01:02 -07:00
preserve_line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
quotes Add parens around all string literals at top level (#1999) 2017-06-06 08:24:13 -07:00
range Add module, class and typed nodes to sourceElements (#2266) 2017-06-25 09:07:52 -07:00
range_css Fix locEnd() for postcss parser (#2295) 2017-06-27 15:12:22 -07:00
range_graphql Add support for range-formatting GraphQL (#2319) 2017-06-28 09:21:11 -07:00
range_json Allow formatting ranges of JSON (#2298) 2017-06-27 16:04:42 -07:00
regex Fix TypeScript regex (#1527) 2017-05-05 21:39:11 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
return-outside-function (Babylon) Allow `return` outside function (#1608) 2017-05-14 14:45:33 -07:00
sequence_break Break sequence expressions (#2388) 2017-07-04 22:50:57 +02:00
shebang Pass entire text through formatWithShebang() to format() (#1718) 2017-05-24 18:59:25 -04:00
spread Ensure parens around LogicalExpression inside ExperimentalSpreadProperty (#2710) 2017-08-30 08:10:36 -07:00
strings Indent based on whitespace only for templates (#1714) 2017-05-24 13:19:34 -07:00
stylefmt Normalize numbers in CSS like JS 2017-08-22 18:50:10 +02:00
switch Fix empty lines with comments between switch cases (#1709) 2017-05-24 13:20:05 -07:00
tabWith test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
template Support inline template for new calls (#2222) 2017-06-21 15:45:44 -07:00
template_align Indent based on whitespace only for templates (#1714) 2017-05-24 13:19:34 -07:00
template_literals Removed injectGlobal and keyframes (#2342) 2017-06-28 16:03:33 -07:00
ternaries Improve JSX ternary formatting 2017-07-13 10:21:58 -06: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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
try Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
typescript Strip away unnecessary quotes in keys in type objects and interfaces (#2643) 2017-08-21 20:08:38 +10:00
typescript_ambient Fix extra semicolon in ambient typescript declaration emit (#2165) (#2167) 2017-06-16 08:20:59 -10:00
typescript_array Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
typescript_as Print parens around type assertion as LHS in assignment, fixes #2521 (#2525) 2017-07-20 23:16:15 +10:00
typescript_cast Print parens around type assertion as LHS in assignment, fixes #2521 (#2525) 2017-07-20 23:16:15 +10:00
typescript_class Upgrade typescript to 2.4 (#2120) 2017-06-13 09:47:40 -07:00
typescript_comments Allow JSX lines to be recombined (#1831) 2017-06-22 09:19:44 -07:00
typescript_declare Fix printing declare modifier for TS enum (#2711) 2017-08-30 08:14:26 -07:00
typescript_decorators Break decorator before content (#2032) 2017-06-07 12:40:47 -07:00
typescript_destructuring Cleanup unused nodes, and turn on importMeta babylon plugin (#2498) 2017-07-16 23:59:49 +10:00
typescript_enum Always expand enums (#1914) 2017-06-02 15:09:55 -07:00
typescript_export Add semi for functions without body (#2025) 2017-06-07 11:51:17 -07:00
typescript_import_require Do not put softline before TSImportEqualsDeclaration (#1679) 2017-05-23 12:33:26 -07:00
typescript_index_signature fix(typescript): print semi in class index signatures, fixes #1960 (#1961) 2017-06-04 07:21:33 -07:00
typescript_interface fix(typescript): always break interfaces onto multiple lines, fixes #2159 (#2161) 2017-06-15 14:34:54 -10:00
typescript_keyof Preserve parens with keyof, enforce parens with arrows with type params (#2503) 2017-07-17 13:32:33 +02:00
typescript_keywords Improve coverage and remove some dead code (#2504) 2017-07-17 23:31:42 +10:00
typescript_method Add semi for functions without body (#2025) 2017-06-07 11:51:17 -07:00
typescript_module Improve coverage and remove some dead code (#2504) 2017-07-17 23:31:42 +10:00
typescript_new TypeScript: group function params in call/construct signatures, fixes #2163 (#2169) 2017-06-17 12:09:18 +10:00
typescript_non_null TypeScript: keep parens around with yield/await non-null assertion, fixes #2137 (#2149) 2017-06-15 09:34:12 +10:00
typescript_nosemi fix(typescript): always break interfaces onto multiple lines, fixes #2159 (#2161) 2017-06-15 14:34:54 -10:00
typescript_readonly TypeScript: temp fix for missing readonly keyword (#1865) 2017-06-02 08:09:24 -07:00
typescript_rest Update typescript-eslint (#1924) 2017-06-02 16:19:15 -07:00
typescript_semi Only prevent lone `set` if there's no type annotations (#2026) 2017-06-07 11:51:25 -07:00
typescript_trailing_comma TypeScript: fix trailing comma in enum (#1938) 2017-06-03 05:20:36 -07:00
typescript_tsx Fix <this.Component /> (#2472) 2017-07-13 17:21:46 +10:00
typescript_tuple Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
typescript_typeparams fix(typescript): print arrow function type params on same line as params, fixes #2099 (#2101) 2017-06-11 07:30:51 -07:00
typescript_union Fix: Union type with type params regression (#2688) 2017-08-28 18:37:12 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -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 fix(variable-declarator): indent first variable in one-var scenario, fixes #2072 (#2095) 2017-06-10 21:19:50 -07:00
while Fix indentation of a do-while condition (#2359) 2017-06-29 15:46:25 -07:00
windows Fix windows line ending on template literals (#1439) 2017-05-01 14:39:03 -07:00
with Put loop bodies on the same line when possible (#1498) 2017-05-03 15:50:48 -07:00
yield Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
.eslintrc.js Improve ESLint setup and fix errors (#1656) 2017-05-21 12:11:09 -07:00