-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
formatting does not work if it ends with a function call #7961
Copy link
Copy link
Labels
area:member chainslang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 2.0.3
Playground link
# Options (if any):
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "es5"Input:
// works as expected
something.veeeeeery.looooooooooooooooooooooooooong = some.other.rather.long.chain;
// does not work if it ends with a function call
something.veeeeeery.looooooooooooooooooooooooooong = some.other.rather.long.chain.functionCall();Output:
// works as expected
something.veeeeeery.looooooooooooooooooooooooooong =
some.other.rather.long.chain;
// does not work if it ends with a function call
something.veeeeeery.looooooooooooooooooooooooooong = some.other.rather.long.chain.functionCall();Expected behavior:
// should break after '=' and before function call.
something.veeeeeery.looooooooooooooooooooooooooong =
some.other.rather.long.chain.functionCall();Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:member chainslang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.