prettier/tests
Lucas Azzola c9159f7862 Break on Property with long value and Literal key (#1786)
* fix(object-expression): break on object literal with long value

* fix(object-expression): add isStringLiteral check
2017-05-29 07:31:24 -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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57: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 Add space around ~ combinator (#1774) 2017-05-27 13:20:32 -07:00
css_comments Preserve comments for selectors (#1755) 2017-05-26 14:55:41 -07:00
css_empty Skip extra `;` (#1773) 2017-05-27 13:20:19 -07:00
css_import Add a test with all the less docs and fix issues (#1792) 2017-05-28 16:05:26 -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 Do not break before `+` (#1777) 2017-05-27 13:41:19 -07:00
css_inline_url Only inline urls with a single argument (#1778) 2017-05-27 14:09:40 -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_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 Add support for SCSS (#1790) 2017-05-28 15:01:47 -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
decorators Fix decorators location (#1779) 2017-05-27 14:51:00 -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 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 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 test(typescript): disable failing tests (#1782) 2017-05-27 18:22:32 -07:00
first_argument_expansion test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
flow Update to flow 0.47 (#1736) 2017-05-25 17:00:36 -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 Don't break for unparenthesised single argument flow function (#1452) 2017-05-01 14:39:46 -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 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 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 Inline | null and | void (#1734) 2017-05-25 16:26:40 -07:00
for Put loop bodies on the same line when possible (#1498) 2017-05-03 15:50:48 -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
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 New primitive to fill a line with as many doc parts as possible (#1120) 2017-05-10 16:13:21 -07:00
jsx-split-attrs Hug JSX text after multi line tags (#1671) 2017-05-23 11:56:21 -07:00
jsx-stateless-arrow-fn Remove parenthesis for JSX inside of arrow functions (#1733) 2017-05-25 16:26:49 -07:00
jsx-text-wrap Hug JSX text after multi line tags (#1671) 2017-05-23 11:56:21 -07: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 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 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 test(typescript): enable typescript-verify on most tests (#1781) 2017-05-27 17:57:07 -07:00
new_expression Prittier printing of snapshots (#1190) 2017-04-12 13:41:51 -07:00
newline test(typescript): disable failing tests (#1782) 2017-05-27 18:22:32 -07:00
no-semi Put loop bodies on the same line when possible (#1498) 2017-05-03 15:50:48 -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
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 Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -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 Remove many spaces from media query (#1776) 2017-05-27 13:32:27 -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 Fix comments inside of template literals (#1713) 2017-05-24 13:19:56 -07:00
template_align Indent based on whitespace only for templates (#1714) 2017-05-24 13:19:34 -07:00
ternaries Run Prettier on all source files (#1648) 2017-05-21 08:13:11 -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 TypeScript: fix namespace comment printing (#1765) 2017-05-26 21:30:42 -07:00
typescript_array Add TSArrayType to ast-types (#1690) 2017-05-23 16:31:01 -07:00
typescript_as Break on implements instead of extends (#1730) 2017-05-25 16:26:56 -07:00
typescript_cast Add parenthesis around arrow functions in a cast (#1689) 2017-05-23 16:30:47 -07:00
typescript_class Update eslint-typescript again (#1791) 2017-05-28 16:05:07 -07:00
typescript_comments Fix TSAbstractClass base (#1676) 2017-05-23 12:34:40 -07:00
typescript_decorators Handle TypeScript decorators (#1678) 2017-05-23 12:33:54 -07:00
typescript_export Do not add double space for export function without body with a comment (#1688) 2017-05-23 16:30:35 -07:00
typescript_import_require Do not put softline before TSImportEqualsDeclaration (#1679) 2017-05-23 12:33:26 -07:00
typescript_interface fix(typescript): handle ExperimentalSpreadOperator, optional method, and abstract interface (#1763) 2017-05-26 20:19:17 -07:00
typescript_method fix(typescript): fix unstable optional method (#1770) 2017-05-27 07:24:54 -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 feat(typescript): print semi instead of comma in TS interface (#1548) 2017-05-07 07:39:21 -07:00
typescript_tsx Remove parenthesis for JSX inside of arrow functions (#1733) 2017-05-25 16:26:49 -07:00
typescript_tuple Add TSTupleType to ast-types (#1685) 2017-05-23 13:14:30 -07:00
typescript_union Port a handful of heuristics we had to work on typescript nodes as well (#1735) 2017-05-25 16:49:25 -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 Force \n for multiple variable declarations (#1723) 2017-05-25 16:26:26 -07:00
while Put loop bodies on the same line when possible (#1498) 2017-05-03 15:50:48 -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