Skip to content

Commit 8973d53

Browse files
authored
chore(format): Check jsx,tsx,astro,vue with prettier (#15493)
This PR adds `jsx,tsx,astro,vue` formatting to prettier. Svelte needs a prettier plugin and I couldn't get it working within 10 minutes so gave up for now.
1 parent fd6e405 commit 8973d53

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"clean:all": "run-s clean:build clean:tarballs clean:caches clean:deps clean:watchman",
2323
"fix": "run-s fix:prettier fix:lerna",
2424
"fix:lerna": "lerna run fix",
25-
"fix:prettier": "prettier \"**/*.md\" \"**/*.css\" \"packages/**/**.{ts,js}\" --write",
25+
"fix:prettier": "prettier \"**/*.md\" \"**/*.css\" \"packages/**/**.{ts,js,jsx,tsx,astro,vue}\" --write",
2626
"changelog": "ts-node ./scripts/get-commit-list.ts",
2727
"link:yarn": "lerna exec yarn link",
2828
"lint": "run-s lint:prettier lint:lerna",
2929
"lint:lerna": "lerna run lint",
30-
"lint:prettier": "prettier \"**/*.md\" \"**/*.css\" \"packages/**/**.{ts,js}\" --check",
30+
"lint:prettier": "prettier \"**/*.md\" \"**/*.css\" \"packages/**/**.{ts,js,jsx,tsx,astro,vue}\" --check",
3131
"lint:es-compatibility": "es-check es2020 ./packages/*/build/{bundles,npm/cjs,cjs}/*.js && es-check es2020 ./packages/*/build/{npm/esm,esm}/*.js --module",
3232
"postpublish": "lerna run --stream --concurrency 1 postpublish",
3333
"test": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests}\" test",

packages/feedback/src/screenshot/components/Crop.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ interface FactoryParams {
5151
options: FeedbackInternalOptions;
5252
}
5353

54-
export default function CropFactory({ h, hooks, options }: FactoryParams): (props: {
54+
export default function CropFactory({
55+
h,
56+
hooks,
57+
options,
58+
}: FactoryParams): (props: {
5559
action: 'crop' | 'annotate' | '';
5660
imageBuffer: HTMLCanvasElement;
5761
croppingRef: Hooks.Ref<HTMLCanvasElement>;

0 commit comments

Comments
 (0)