This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
[開發依賴項更新] (deps-dev): Bump eslint from 8.56.0 to 9.11.1 #1141
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [push] | |
permissions: write-all | |
jobs: | |
run-linters: | |
name: 運行 linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: 查看 Git 存儲庫 | |
uses: actions/checkout@v3 | |
- name: 設置 Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: 安裝 Node.js 依賴項 | |
run: npm ci | |
- name: 安裝 ESLint | |
run: npm install -g eslint prettier | |
- name: 運行 linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
eslint: true | |
prettier: false | |
auto_fix: true | |
git_name: "ESLint" | |
commit_message: "使用 ${linter} 修飾&格式化程式代碼" |