From 7df48742006ba99cf6aa48db10ade2bfe6b52c1b Mon Sep 17 00:00:00 2001 From: David Maskasky Date: Tue, 4 Feb 2025 19:15:46 -0800 Subject: [PATCH] add pnpm run fix script and update pr template (#2996) --- .github/pull_request_template.md | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6a12d94d8a..a11baaa1b3 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,4 +8,4 @@ Fixes # ## Check List -- [ ] `pnpm run fix:format` for formatting code and docs +- [ ] `pnpm run fix` for formatting and linting code and docs diff --git a/package.json b/package.json index 2197759a33..310f43bc55 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "build:react:shallow": "rollup -c --config-react_shallow", "build:traditional": "rollup -c --config-traditional", "postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts", + "fix": "pnpm run \"/^fix:.*/\"", "fix:format": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write", "fix:lint": "eslint . --fix", "test": "pnpm run \"/^test:.*/\"",