Skip to content

Commit 4142843

Browse files
authored
ci: enable ESLint autofix in autofix bot (langgenius#31428)
Signed-off-by: majiayu000 <[email protected]>
1 parent b3a869b commit 4142843

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ jobs:
7979
find . -name "*.py" -type f -exec sed -i.bak -E 's/"([^"]+)" \| None/Optional["\1"]/g; s/'"'"'([^'"'"']+)'"'"' \| None/Optional['"'"'\1'"'"']/g' {} \;
8080
find . -name "*.py.bak" -type f -delete
8181
82+
- name: Install pnpm
83+
uses: pnpm/action-setup@v4
84+
with:
85+
package_json_file: web/package.json
86+
run_install: false
87+
88+
- name: Setup Node.js
89+
uses: actions/setup-node@v6
90+
with:
91+
node-version: 24
92+
cache: pnpm
93+
cache-dependency-path: ./web/pnpm-lock.yaml
94+
95+
- name: Install web dependencies
96+
run: |
97+
cd web
98+
pnpm install --frozen-lockfile
99+
100+
- name: ESLint autofix
101+
run: |
102+
cd web
103+
pnpm lint:fix || true
104+
82105
# mdformat breaks YAML front matter in markdown files. Add --exclude for directories containing YAML front matter.
83106
- name: mdformat
84107
run: |

0 commit comments

Comments
 (0)