<!-- BEFORE SUBMITTING AN ISSUE: 1. Search for your issue on GitHub: https://github.com/prettier/prettier/issues A large number of opened issues are duplicates of existing issues. If someone has already opened an issue for what you are experiencing, you do not need to open a new issue — please add a 👍 reaction to the existing issue instead. 2. We get a lot of requests for adding options, but Prettier is built on the principle of being opinionated about code formatting. This means we have a very high bar for adding new options. Find out more: https://prettier.io/docs/en/option-philosophy.html Tip! Don't write this stuff manually. 1. Go to https://prettier.io/playground 2. Paste your code and set options 3. Press the "Report issue" button in the lower right --> **Prettier 1.18.2** [Playground link](https://prettier.io/playground/#.....) ```sh # Options (if any): --print-width=10 ``` **Input:** ```jsx const bar = long.long; const foo = long.long(); ``` **Output:** ```jsx const bar = long.long; const foo = long.long(); ``` **Expected behavior:** ```js const bar = long.long; const foo = long.long(); ```
Prettier 1.18.2
Playground link
# Options (if any): --print-width=10Input:
Output:
Expected behavior: