TypeScript/tests/cases/fourslash/formattingArrowFunctionParenthesizedExpression.ts
Andrew Branch 9eb6424b8f
Fix indentation of arrow functions returning parenthesized expressions (#40677)
* Fix indentation of arrow functions returning parenthesized expressions

* Add more test cases
2020-09-22 17:16:09 -07:00

48 lines
956 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: Bar.tsx
//// export const Bar = ({
//// foo,
//// bar,
//// }: any) => (
//// <div>Hello world</div>
//// )
////
//// export const Bar2 = ({
//// foo,
//// bar,
//// }) => (<div>Hello world</div>)
////
//// export const Bar2 = ({
//// foo,
//// bar,
//// }) => <div>Hello world</div>
////
//// export const Bar3 = ({
//// foo,
//// bar,
//// }) =>
//// (<div>Hello world</div>)
////
//// export const Bar4 = ({
//// foo,
//// bar,
//// }) =>
//// <div>Hello world</div>
////
//// export const Bar5 = () => (
//// <div>Hello world</div>
//// )
////
//// export const Bar6 = () => (<div>Hello world</div>)
////
//// export const Bar7 = () => <div>Hello world</div>
////
//// export const Bar8 = () =>
//// (<div>Hello world</div>)
////
//// export const Bar9 = () =>
//// <div>Hello world</div>
verify.formatDocumentChangesNothing();