chore: clean up; update CI node; update vscode ext; fix lint

This commit is contained in:
Simon
2025-12-08 17:18:54 +08:00
parent 32c17627e9
commit d0836fd788
6 changed files with 5 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: 'npm'
- name: Install dependencies

1
.gitignore vendored
View File

@@ -23,6 +23,7 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.qoder
#

View File

@@ -1 +1 @@
npx lint-staged
npx lint-staged --allow-empty

View File

@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
"recommendations": ["dbaeumer.vscode-eslint", "prettier.prettier-vscode"]
}

View File

@@ -17,7 +17,6 @@ And other internal packages. Such as:
```bash
npm start # Start website dev server
npm run dev # Same as start
npm run build # Build all packages
npm run build:lib # Build page-agent library only
npm run lint # ESLint with TypeScript strict rules

View File

@@ -21,10 +21,9 @@
"npm": ">=10.0.0"
},
"scripts": {
"dev": "npm run dev --workspace=@page-agent/website",
"start": "npm run dev --workspace=@page-agent/website",
"build": "npm run build --workspaces --if-present",
"build:lib": "npm run build --workspace=page-agent",
"build:lib": "npm run build:lib --workspace=page-agent",
"version": "node scripts/sync-version.js",
"lint": "eslint .",
"prepare": "husky"