Add "Autofix" action (#15749)
This commit is contained in:
1 parent
40a04dd216
commit
e963cb9bae
2 files changed
+20
-2
No files matched your search
@@ -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
@@ -166,7 +166,7 @@
|
|||||||
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin/prettier.cjs",
|
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin/prettier.cjs",
|
||||||
"perf:benchmark": "yarn perf --debug-benchmark",
|
"perf:benchmark": "yarn perf --debug-benchmark",
|
||||||
"perf:compare": "./scripts/benchmark/compare.sh",
|
"perf:compare": "./scripts/benchmark/compare.sh",
|
||||||
"lint": "run-p \"lint:*\"",
|
"lint": "run-p --continue-on-error \"lint:*\"",
|
||||||
"lint:typecheck": "tsc",
|
"lint:typecheck": "tsc",
|
||||||
"lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
|
"lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
|
||||||
"lint:changelog": "node ./scripts/lint-changelog.js",
|
"lint:changelog": "node ./scripts/lint-changelog.js",
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
"lint:deps": "node ./scripts/check-deps.js",
|
"lint:deps": "node ./scripts/check-deps.js",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
"lint:format-test": "node ./scripts/format-test-lint.js",
|
"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:eslint": "yarn lint:eslint --fix",
|
||||||
"fix:prettier": "yarn lint:prettier --write",
|
"fix:prettier": "yarn lint:prettier --write",
|
||||||
"build": "node ./scripts/build/build.js",
|
"build": "node ./scripts/build/build.js",
|
||||||
|
|||||||
Reference in new issue
Block a user