prettier/tests
Lucas Azzola 02639da9a9 Improve coverage and remove some dead code (#2504)
* Improve test coverage

* Clean up some un-used code

* Lower patch requirements on codecov
2017-07-17 23:31:42 +10: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 Handle comments at the beginning of ClassProperty value (#1692) 2017-05-23 17:13:40 -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 Trim trailing whitespace from comments, closes #2422 (#2494) 2017-07-16 17:45:27 +10: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 fix(css): print @else on same line as }, fixes #2053 (#2088) 2017-06-10 07:40:05 -07:00
css_attribute Add support for insensitive attribute match (#1760) 2017-05-26 19:30:29 -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_comments Trim whitespace in descendant combinator, fixes #2410 (#2411) 2017-07-06 13:55:34 +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 Add support for media-url (#1797) 2017-05-29 08:20:03 -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 Use fill for CSS values (#2224) 2017-06-21 15:13:51 -07:00
css_inline_url Remove double spaces in @font-face (#1801) 2017-05-29 08:49:51 -07: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_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_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 decorator comments for export class (#2038) 2017-06-07 14:55:55 -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 Allow single expressions in JSX to be inline 2017-07-10 20:02:30 +01: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_function_parentheses Add parenthesis for single arg types with generics (#1814) 2017-05-29 16:59:45 -07:00
flow_generic Print TypeParameter even when unary function type (#2406) 2017-07-06 19:13:30 +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 Go back to babylon beta 13 (#2289) 2017-06-27 11:51:23 -07: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 Cleanup unused nodes, and turn on importMeta babylon plugin (#2498) 2017-07-16 23:59:49 +10: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 Force trailingComma option to "none" when parser is JSON (#2335) 2017-06-28 09:29:47 -07: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 Implement prettier-ignore inside JSX (#2487) 2017-07-15 20:21:43 +10: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 Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
method-chain fix(method-chain): break on non-literal computed member expression, fixes #2075 (#2087) 2017-06-10 07:47:22 -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 Forward originalText in multiparser (#2260) 2017-06-24 17:54:09 -07: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
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
strings Indent based on whitespace only for templates (#1714) 2017-05-24 13:19:34 -07:00
stylefmt Use fill for CSS values (#2224) 2017-06-21 15:13:51 -07: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 Handle conditions inside of a ternary (#2228) 2017-06-21 18:17:30 -07: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 TypeScript: allow type assertions to hug (#2439) 2017-07-10 22:37:43 +10:00
typescript_cast TypeScript: allow type assertions to hug (#2439) 2017-07-10 22:37:43 +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_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 TypeScript: Remove parens from type annotations where possible (#2098) 2017-06-11 18:06:47 -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