Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ jobs:
CYPRESS_INSTALL_BINARY: 0
- name: run type-check
run: npm run type-check
knip:
name: run knip
runs-on: ubuntu-latest
needs: [packages]
steps:
- name: checkout
uses: actions/checkout@v5
- name: setup Node
uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
cache: npm
- name: npm ci
run: npm ci
env:
CYPRESS_INSTALL_BINARY: 0
- name: run knip
run: npm run knip
build:
name: run build
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions knip.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { KnipConfig } from 'knip'

const config: KnipConfig = {
entry: ['src/{main,sw}.ts'],
project: ['src/**'],
ignore: [
'src/types/entity-ids.d.ts',
'tsconfig.json',
'src/components/UI/VirtualScroller.vue'
],
ignoreUnresolved: [/.*\.svg/],
ignoreDependencies: ['highlight.js'],
ignoreExportsUsedInFile: true,
includeEntryExports: true,
treatConfigHintsAsErrors: true
}

export default config
Loading