# Prescribed Solution: * [x] Format all of the extension code * [ ] ~Format on commit~ * [x] Format on save (user settings, opt in using) * [x] Recommend prettier extension in `.vscode/extensions.json` * [ ] Prettier Config settings * [x] Prettier rc config (editor agnostic, also picked by CI) * [ ] ~`.vscode/settings`~ * [x] CI check for all pipelines * [x] PR pipeline * [x] CI Pipeline * [x] Update contributing guide * [x] Configure prettier to use tslint (ensure this works on CI) * TIP - Look for prettier plugins (plenty good ones)
Activity
[-]Code formatting for typescript code[/-][+]Spike Code formatting for typescript code[/+]kimadeline commentedon Jul 9, 2019
How to integrate
npm i prettier --save-devesbenp.prettier-vscode"singleQuote": true"prettier.tslintIntegration": true"editor.formatOnSave": truenpm scripts
"prettier:format": "prettier --write '{src,uitests}/**/*.{ts,tsx,js,css}'""prettier:check": "prettier --check '{src,uitests}/**/*.{ts,tsx,js,css}'".prettierignorefileCommitting
📚 Precommit hooks documentation: https://prettier.io/docs/en/precommit.html
CI checks
See #6501 for an example of a formatting check job
Code formatting
kimadeline commentedon Jul 9, 2019
Work to be done listed here: #2012