We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Running dprint fmt on the on some code twice, leads to different output each time.
dprint fmt
Input Code
const createTestData = () => function*() { const startingFrom = yield* Effect.map(DateTime.now, now => DateTime.startOf(now, 'day')) return HashSet.make(DateTime.toEpochMillis(startingFrom)) }
Expected Output
Actual Output
first time:
const createTestData = () => function*() { const startingFrom = yield* Effect.map(DateTime.now, now => DateTime.startOf(now, 'day')) return HashSet .make(DateTime.toEpochMillis(startingFrom)) }
second time:
const createTestData = () => function*() { const startingFrom = yield* Effect.map(DateTime.now, now => DateTime.startOf(now, 'day')) return HashSet .make(DateTime .toEpochMillis(startingFrom)) }
The text was updated successfully, but these errors were encountered:
note that following remains unchanged (with the same config)
const createTestData = () => function*() { return HashSet.make(DateTime.toEpochMillis(startingFrom)) }
and the following:
const createTestData = function*() { const startingFrom = yield* Effect.map(DateTime.now, now => DateTime.startOf(now, 'day')) return HashSet.make(DateTime.toEpochMillis(startingFrom)) }
gets formatted to:
const createTestData = function*() { const startingFrom = yield* Effect.map( DateTime.now, now => DateTime.startOf(now, 'day'), ) return HashSet.make(DateTime.toEpochMillis(startingFrom)) }
Sorry, something went wrong.
Tested with:
{ "typescript": { "arrowFunction.useParentheses": "preferNone", "binaryExpression.linePerExpression": true, "enumDeclaration.memberSpacing": "newLine", "jsx.quoteStyle": "preferSingle", "lineWidth": 80, "memberExpression.linePerExpression": true, "nextControlFlowPosition": "sameLine", "quoteProps": "asNeeded", "quoteStyle": "preferSingle", "semiColons": "asi" } }
No branches or pull requests
Describe the bug
Running
dprint fmt
on the on some code twice, leads to different output each time.Input Code
Expected Output
Actual Output
first time:
second time:
The text was updated successfully, but these errors were encountered: