wartoshika/wow-declarations

Auto formatting settings?

tstirrat opened this issue · 4 comments

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"
  }
}

I will add a formatting file to the repository to avoid that the pull requests are messed up.

I added tslint to this project. This should help that formatting issues are present. Does this fit your needs?

Will check!

Please reopen this issue if you think that tslint does not fit your needs.