prettier/tests
Christopher Chedeau ccda4c7115 Break decorator before content (#2032)
Fixes #1996
2017-06-07 12:40:47 -07: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 Use expandLast for nested arrow functions (#1720) 2017-05-24 18:19:07 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
binary_math Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07: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 Add group around implements (#1821) 2017-05-30 09:45:07 -07:00
comments Fix comments inside of template literals (#1713) 2017-05-24 13:19:56 -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
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_colon Add support for value-colon (#1753) 2017-05-26 15:58:09 -07:00
css_combinator Strip leading space for first combinators (#1807) 2017-05-29 12:49:25 -07:00
css_comments Workaround bug with comment ending in */ (#1810) 2017-05-29 13:05:20 -07: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_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 Break before combinators and indent (#1809) 2017-05-29 12:55:14 -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_params Skip params in --debug-check (#1754) 2017-05-26 15:58:00 -07:00
css_parens Preserve space before parens (#1806) 2017-05-29 12:41:04 -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 Remove extra newline from empty @media (#1802) 2017-05-29 08:52:24 -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_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 Translate cursor relative to nearest node, not SourceElement (#1989) 2017-06-05 18:51:53 -07:00
decorators fix(decorators): do not inline methods with decorators with babylon, fixes #1933 (#1934) 2017-06-03 05:24:24 -07:00
destructuring Upgrade typescript-eslint to 31ad3c (#1738) 2017-05-25 19:04:15 -07:00
directives test(typescript): disable failing tests (#1782) 2017-05-27 18:22:32 -07:00
do Add parens around all string literals at top level (#1999) 2017-06-06 08:24:13 -07:00
dynamic_import Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -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 Add parens around all string literals at top level (#1999) 2017-06-06 08:24:13 -07:00
first_argument_expansion test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
flow JSX whitespace on the same line as text (#1829) 2017-05-31 10:16:50 -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_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 Bump Babylon and enable additional tests (#1668) 2017-05-22 15:31:53 -07:00
flow_import_type_specifier Inline import type (#1729) 2017-05-25 16:27:04 -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 Allow flow declarations to break on StringLiteralTypeAnnotations (#1437) 2017-04-27 11:21:42 -07:00
flow_type_spread Temporary fix comments inside of flow type spread (#1716) 2017-05-24 15:21:30 -07:00
flow_union Break if string | null (#2028) 2017-06-07 11:51:32 -07: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 Break inline object first in function arguments (#1453) (#1173) 2017-05-01 19:12:53 -07:00
graphql_arguments re-run tests 2017-06-05 22:26:35 -07:00
graphql_definitions GraphQL: Add support for printing operation names (#1992) 2017-06-05 22:24:01 -07:00
graphql_directives Add support for GraphQL directies (#2015) 2017-06-06 17:42:47 -07:00
graphql_fields re-run tests 2017-06-05 22:26:35 -07:00
graphql_fragments Add GraphQL fragment support (#2005) 2017-06-06 12:35:40 -07:00
graphql_hello GraphQL: Add support for printing operation names (#1992) 2017-06-05 22:24:01 -07:00
graphql_kitchen_sink Add alias and null value (#2017) 2017-06-06 18:06:15 -07:00
graphql_lists Add support for list values (#1994) 2017-06-05 23:45:15 -07:00
graphql_objects Add support for GraphQL object values (#2010) 2017-06-06 14:28:15 -07:00
graphql_union_types GraphQL: Add support for union types (#2014) 2017-06-07 10:33:46 -07:00
graphql_variable_definitions Add GraphQL variable definition support (#1995) 2017-06-06 08:26:04 -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 Inline import type (#1729) 2017-05-25 16:27:04 -07:00
import_then Update to flow 0.47 (#1736) 2017-05-25 17:00:36 -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
jsx Remove parenthesis for JSX inside of arrow functions (#1733) 2017-05-25 16:26:49 -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 Position JSX whitespace (`{" "}`) at the end of lines (#1964) 2017-06-05 21:52:54 +01:00
jsx-split-attrs Hug JSX text after multi line tags (#1671) 2017-05-23 11:56:21 -07:00
jsx-stateless-arrow-fn Position JSX whitespace (`{" "}`) at the end of lines (#1964) 2017-06-05 21:52:54 +01:00
jsx-text-wrap Position JSX whitespace (`{" "}`) at the end of lines (#1964) 2017-06-05 21:52:54 +01:00
jsx-whitespace Preserve unusual unicode whitespace (#1658) 2017-05-23 09:09:29 -07:00
jsx_escape Preserve unusual unicode whitespace (#1658) 2017-05-23 09:09:29 -07:00
jsx_last_line Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07: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 Remove parenthesis for JSX inside of arrow functions (#1733) 2017-05-25 16:26:49 -07: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
member Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
method-chain Fix leading comment (#1920) 2017-06-02 15:50:43 -07: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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -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 Use the same breaking rules for assignment and object values (#1721) 2017-05-24 18:19:15 -07:00
optional-type-name Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
performance test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07: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 Strip leading space for first combinators (#1807) 2017-05-29 12:49:25 -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 Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
template_align Indent based on whitespace only for templates (#1714) 2017-05-24 13:19:34 -07:00
template_literals Parse CSS in template literals (styled-jsx) (#1984) 2017-06-06 08:28:13 -07:00
ternaries Do not indent nested ternaries (#1822) 2017-05-30 10:08:06 -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 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 Add semi for functions without body (#2025) 2017-06-07 11:51:17 -07:00
typescript_array Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
typescript_as Fix As parenthesis for real (#1923) 2017-06-02 16:08:45 -07:00
typescript_cast Add parenthesis around arrow functions in a cast (#1689) 2017-05-23 16:30:47 -07:00
typescript_class Move accessibility before static (#1908) 2017-06-02 14:27:19 -07:00
typescript_comments Fix TSAbstractClass base (#1676) 2017-05-23 12:34:40 -07:00
typescript_decorators Break decorator before content (#2032) 2017-06-07 12:40:47 -07: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 Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
typescript_method Add semi for functions without body (#2025) 2017-06-07 11:51:17 -07:00
typescript_module Support empty declare module (#1693) 2017-05-23 17:13:47 -07:00
typescript_non_null Add parens for expressions inside TSNonNullExpression (#1748) 2017-05-26 12:03:27 -07:00
typescript_nosemi fix(typescript): print semi in class index signatures, fixes #1960 (#1961) 2017-06-04 07:21:33 -07: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.x /> (#1886) 2017-06-02 14:27:27 -07:00
typescript_tuple Use semi-colon for object separator (#1918) 2017-06-02 15:32:51 -07:00
typescript_union fix conflict 2017-06-02 15:44:50 -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 Do not make variable multilines inside of for loop (#1912) 2017-06-02 15:00:16 -07:00
while Don't force line break in empty loop bodies (#1815) 2017-05-30 09:39:10 -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