Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Refer to specific instruction files in `.github/instructions/` for detailed guid
### Required Validation Steps

- Always run `npm run format` and `npm run lint` before committing changes
- The CI pipeline (.github/workflows/linter.yml) runs `npm run lint -- --quiet` and `npm run unimported`
- The CI pipeline (.github/workflows/linter.yml) runs `npm run lint -- --quiet` and `npm run knip`
- Application loads successfully showing CARE healthcare facility search and login interface
- Build produces a functional PWA with service worker

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
- name: Run lint
run: npm run lint -- --quiet

- name: Run unimported
run: npm run unimported
- name: Run knip
run: npm run knip
87 changes: 0 additions & 87 deletions .unimportedrc.json

This file was deleted.

27 changes: 27 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"entry": [
"src/service-worker.ts",
"src/pluginMap.ts",
"src/PluginRegistry.ts",
"src/Locale/update_locale.js",
"src/lib/override/index.ts",
"tests/globalSetup.ts",
"tests/setup/*.setup.ts"
],
"ignoreExportsUsedInFile": true,
"exclude": ["types", "nsExports", "nsTypes", "enumMembers", "duplicates"],
"tags": ["-public"],
"ignoreIssues": {
"src/components/ui/**": ["exports"],
"src/components/Common/Table.tsx": ["exports"],
"src/Utils/decimal.ts": ["exports"]
},
"ignoreUnresolved": ["__federation__", "@/supportedBrowsers"],
"ignoreBinaries": ["react-scan"],
"ignoreDependencies": [
"normalize-wheel",
"workbox-core",
"workbox-precaching"
]
}
Loading
Loading