Skip to content

Break decorator before content#2032

Merged
vjeux merged 1 commit intoprettier:masterfrom
vjeux:breaking_decorators_multiline
Jun 7, 2017
Merged

Break decorator before content#2032
vjeux merged 1 commit intoprettier:masterfrom
vjeux:breaking_decorators_multiline

Conversation

@vjeux
Copy link
Copy Markdown
Contributor

@vjeux vjeux commented Jun 7, 2017

Fixes #1996

Comment thread src/printer.js
? ""
: "@";
parts.push(prefix, printPath(decoratorPath), line);
decorators.push(prefix, printPath(decoratorPath), hardline);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line used to work by accident, because we didn't have any group so the other properties would likely make it break. We always do want to break here.

@vjeux vjeux merged commit ccda4c7 into prettier:master Jun 7, 2017
blowery added a commit to Automattic/wp-prettier that referenced this pull request Jun 21, 2017
* tag '1.4.4': (421 commits)
  1.4.4
  1.4.3
  Clean up build script, add Babel for docs js bundles (prettier#1970)
  Check if the next group has comments (prettier#2040)
  Include typeAnnotation inside of node location (prettier#2039)
  Fix decorator comments for export class (prettier#2038)
  Add group around TSMethodSignature (prettier#2037)
  Do not throw for unprinted comments inside of JSX (prettier#2036)
  Break decorator before content (prettier#2032)
  Fix less &:extends when parsed with scss (prettier#2034)
  Fix parenthesis for call expression inside of member expression inside of new (prettier#2035)
  Break if string | null (prettier#2028)
  Only prevent lone `set` if there's no type annotations (prettier#2026)
  Add semi for functions without body (prettier#2025)
  Update commands.md
  Update commands.md
  Pretty printer commands.js
  GraphQL: Add support for union types (prettier#2014)
  Update README for emacs integration link (prettier#2024)
  Add alias and null value (prettier#2017)
  ...
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 20, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant