Add "Autofix" action (#15749)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-03-07 19:24:30 +08:00
1 parent 40a04dd216
commit e963cb9bae
2 files changed
+20 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
name: autofix.ci # needed to securely identify the workflow
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fix:
name: Run automated fix
uses: prettier/shared-workflows/.github/workflows/automated-fix.yml@main
with:
repository: prettier/prettier
+2 -2
View File
@@ -166,7 +166,7 @@
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin/prettier.cjs",
"perf:benchmark": "yarn perf --debug-benchmark",
"perf:compare": "./scripts/benchmark/compare.sh",
"lint": "run-p \"lint:*\"",
"lint": "run-p --continue-on-error \"lint:*\"",
"lint:typecheck": "tsc",
"lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
"lint:changelog": "node ./scripts/lint-changelog.js",
@@ -175,7 +175,7 @@
"lint:deps": "node ./scripts/check-deps.js",
"lint:knip": "knip",
"lint:format-test": "node ./scripts/format-test-lint.js",
"fix": "run-s fix:eslint fix:prettier",
"fix": "run-s --continue-on-error fix:eslint fix:prettier",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write",
"build": "node ./scripts/build/build.js",