From ead10cb411400aff5474c457217c74ddf9414de0 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Thu, 17 Feb 2022 15:02:33 -0800 Subject: [PATCH] Added prettier to fast-ssr package (#5617) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request ## 📖 Description This change adds prettier to the `@microsoft/fast-ssr` package. Note: I ran prettier after the changes and it looks like the current files are gtg. This is more for future proofing. ## ✅ Checklist ### General - [ ] I have included a change request file using `$ yarn change` - [ ] I have added tests for my changes. - [x] I have tested my changes. - [ ] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/Microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://www.fast.design/docs/community/code-of-conduct/#our-standards) for this project. --- packages/web-components/fast-ssr/.prettierignore | 3 +++ packages/web-components/fast-ssr/package.json | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 packages/web-components/fast-ssr/.prettierignore diff --git a/packages/web-components/fast-ssr/.prettierignore b/packages/web-components/fast-ssr/.prettierignore new file mode 100644 index 00000000000..28c7caee553 --- /dev/null +++ b/packages/web-components/fast-ssr/.prettierignore @@ -0,0 +1,3 @@ +coverage/* +dist/* +*.spec.ts diff --git a/packages/web-components/fast-ssr/package.json b/packages/web-components/fast-ssr/package.json index a9cf3c7a1d3..840d00ab066 100644 --- a/packages/web-components/fast-ssr/package.json +++ b/packages/web-components/fast-ssr/package.json @@ -20,6 +20,8 @@ "eslint": "eslint . --ext .ts", "eslint:fix": "eslint . --ext .ts --fix", "pretest": "npm run build-server && npm run build", + "prettier:diff": "prettier --config ../../../.prettierrc \"**/*.{ts,html}\" --list-different", + "prettier": "prettier --config ../../../.prettierrc --write \"**/*.{ts,html}\"", "test": "playwright test --config=playwright.config.cjs", "test-server": "node server/dist/server.js", "install-playwright-browsers": "npx playwright install"