Skip to content

添加 ESLint 配置:启用 TypeScript/安全规则,与 Prettier 协作;修复 CI 中“ESLint couldn't… #31

添加 ESLint 配置:启用 TypeScript/安全规则,与 Prettier 协作;修复 CI 中“ESLint couldn't…

添加 ESLint 配置:启用 TypeScript/安全规则,与 Prettier 协作;修复 CI 中“ESLint couldn't… #31

Workflow file for this run

name: CI
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci || npm install
- name: Security audit
run: npm audit --audit-level=moderate || true
- name: Lint
run: npm run lint
- name: Type check
run: npm run type-check