Auto formatting settings?
tstirrat opened this issue · 4 comments
tstirrat commented
Are you using Prettier etc?
Can you commit your settings.json
or .prettierrc
so that auto formatting settings are declared in the repo?
I am trying to create minimal diffs but every time I save it's reformatting..
Seems like you have this:
settings.json:
{
"editor.tabSize": 4,
"files.trimFinalNewlines": false,
"files.trimTrailingWhitespace": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
wartoshika commented
I will add a formatting file to the repository to avoid that the pull requests are messed up.
wartoshika commented
I added tslint
to this project. This should help that formatting issues are present. Does this fit your needs?
tstirrat commented
Will check!
wartoshika commented
Please reopen this issue if you think that tslint
does not fit your needs.