When I use Reformat File in IntelliJ Idea, IDE adds additional space in function argument to align it in one line with function.
I can't find option in Code Style to disable in on change configuration.
Code:
export const getApplicationFormInstance = ({
consents,
dealer_code,
source,
rent_subscription,
comment = null,
...baseOptions
}: IApplicationFormOptions): FormInstanceType<IApplicationModel> => {
return false;
}
Screenshot of Error from ESLint:
I try to find way to fix it in IDE, not in ESLint like:
"@typescript-eslint/indent": "off"
CodePudding user response:
- Select the code you want to format differently.
- Type Alt Enter and invoke
Adjust code style settings
- Under the
Wrapping and Braces
tab uncheck theAlign when multiline
checkbox
That should get you the formatter behaviour you want.