mirror of
https://github.com/tangledup-ai/stepfun-vector-stores-admin.git
synced 2026-01-20 19:00:59 +08:00
chore(knip): 开启检查服务
This commit is contained in:
31
.github/workflows/stale.yml
vendored
31
.github/workflows/stale.yml
vendored
@@ -2,28 +2,27 @@ name: Close inactive issues/PR
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '38 18 * * *'
|
||||
- cron: '38 18 * * *'
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v5
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-issue-stale: 120
|
||||
days-before-issue-close: 120
|
||||
stale-issue-label: "stale"
|
||||
stale-issue-message: "This issue is stale because it has been open for 120 days with no activity."
|
||||
close-issue-message: "This issue was closed because it has been inactive for 120 days since being marked as stale."
|
||||
days-before-pr-stale: 120
|
||||
days-before-pr-close: 120
|
||||
stale-pr-label: "stale"
|
||||
stale-pr-message: "This PR is stale because it has been open for 120 days with no activity."
|
||||
close-pr-message: "This PR was closed because it has been inactive for 120 days since being marked as stale."
|
||||
operations-per-run: 0
|
||||
- uses: actions/stale@v5
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
days-before-issue-stale: 120
|
||||
days-before-issue-close: 120
|
||||
stale-issue-label: 'stale'
|
||||
stale-issue-message: 'This issue is stale because it has been open for 120 days with no activity.'
|
||||
close-issue-message: 'This issue was closed because it has been inactive for 120 days since being marked as stale.'
|
||||
days-before-pr-stale: 120
|
||||
days-before-pr-close: 120
|
||||
stale-pr-label: 'stale'
|
||||
stale-pr-message: 'This PR is stale because it has been open for 120 days with no activity.'
|
||||
close-pr-message: 'This PR was closed because it has been inactive for 120 days since being marked as stale.'
|
||||
operations-per-run: 0
|
||||
|
||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: "pnpm"
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -41,10 +41,12 @@ jobs:
|
||||
- name: Run ESLint check
|
||||
run: |
|
||||
set -o pipefail
|
||||
pnpm lint
|
||||
pnpm lint:check
|
||||
|
||||
# - name: Analyze unused files and dependencies
|
||||
# run: pnpm knip
|
||||
- name: Analyze unused files and dependencies
|
||||
run: |
|
||||
set -o pipefail
|
||||
pnpm knip:check
|
||||
|
||||
- name: Build the project
|
||||
run: |
|
||||
|
||||
@@ -2,17 +2,18 @@
|
||||
/*
|
||||
|
||||
# Except these files & folders
|
||||
!/.github
|
||||
!/src
|
||||
!index.html
|
||||
!package.json
|
||||
!vite.config.ts
|
||||
!tailwind.config.js
|
||||
!postcss.config.js
|
||||
!eslint.config.js
|
||||
!knip.config.ts
|
||||
!tsconfig.json
|
||||
!tsconfig.node.json
|
||||
!vite.config.ts
|
||||
!.prettierrc
|
||||
!README.md
|
||||
!eslint.config.js
|
||||
!postcss.config.js
|
||||
|
||||
# Ignore auto generated routeTree.gen.ts
|
||||
/src/routeTree.gen.ts
|
||||
@@ -46,4 +46,4 @@
|
||||
"^@/features/(.*)$",
|
||||
"^[./]"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -18,4 +18,4 @@
|
||||
"hooks": "@/hooks"
|
||||
},
|
||||
"iconLibrary": "lucide"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,14 @@
|
||||
import type { KnipConfig } from 'knip';
|
||||
import type { KnipConfig } from 'knip'
|
||||
|
||||
const config: KnipConfig = {
|
||||
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts'],
|
||||
ignoreDependencies: ["tailwindcss", "tw-animate-css"]
|
||||
};
|
||||
ignoreDependencies: ['tailwindcss', 'tw-animate-css'],
|
||||
rules: {
|
||||
files: 'warn',
|
||||
dependencies: 'warn',
|
||||
exports: 'warn',
|
||||
types: 'warn',
|
||||
},
|
||||
}
|
||||
|
||||
export default config;
|
||||
export default config
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview",
|
||||
"format:check": "prettier --check .",
|
||||
"format": "prettier --write .",
|
||||
"knip": "knip"
|
||||
"lint:check": "eslint .",
|
||||
"knip:check": "knip"
|
||||
},
|
||||
"dependencies": {
|
||||
"@clerk/clerk-react": "^5.42.1",
|
||||
|
||||
Reference in New Issue
Block a user