diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 580d2a672b..6a12d94d8a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,4 +8,4 @@ Fixes # ## Check List -- [ ] `pnpm run prettier` for formatting code and docs +- [ ] `pnpm run fix:format` for formatting code and docs diff --git a/package.json b/package.json index d5bec31087..ce840facbc 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "build:react:shallow": "rollup -c --config-react_shallow", "build:traditional": "rollup -c --config-traditional", "postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-old-ts && pnpm patch-esm-ts", - "prettier": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write", - "eslint": "eslint . --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:.*/'", "test:format": "prettier '*.{js,json,md}' '{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}' --list-different", "test:types": "tsc --noEmit",