Skip to content

Commit

Permalink
🚧chore:migrate unimported to knip
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWerey committed Sep 27, 2024
1 parent 6cf1258 commit f42125e
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 170 deletions.
17 changes: 17 additions & 0 deletions apps/ledger-live-desktop/.knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": [
"src/index.ts",
"src/renderer/index.ts",
"src/preloader/index.ts",
"src/renderer/webworkers/workers/*.ts",
"src/webviewPreloader/dappPreloader.ts",
"src/webviewPreloader/index.ts"
],
"project": ["src/**"],
"ignore": ["src/**/__integration__/**"],
"ignoreBinaries": ["eslint", "knip", "prettier", "zx", "lint"],
"ignoreDependencies": ["prop-types", "allure-commandline", "msw", "undici"],
"ignoreMembers": [],
"ignoreExportsUsedInFile": true
}
15 changes: 1 addition & 14 deletions apps/ledger-live-desktop/.unimportedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,7 @@
"extensions": [".ts", ".js", ".jsx", ".tsx"],
"ignorePatterns": ["**/node_modules/**"],
"ignoreUnresolved": ["../../../../release-notes.json", "unzip-crx-3"],
"ignoreUnimported": [
"**/*.test.*",
"**/*.spec.*",
"**/*.d.ts",
"**/types.js",
"**/types.*",
"node_modules/**",
"src/generate-cryptoassets-md.test.ts",
"src/generate-cryptoassets-md.ts",

"src/newArch/features/Collectibles/**",
"src/newArch/features/WalletSync/__tests__/shared.tsx",
"src/renderer/DesktopStorageProvider.ts"
],
"ignoreUnimported": ["src/**/__tests__/**", "**/*.spec.*", "**/*.test.*", "**/*.d.ts"],
"ignoreUnused": [
"@types/semver",
"@types/qrcode",
Expand Down
4 changes: 2 additions & 2 deletions apps/ledger-live-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:playwright:clean": "git clean -fdX tests/artifacts",
"typecheck": "node scripts/typecheck.js",
"check": "pnpm lint; pnpm typecheck",
"unimported": "unimported",
"unimported": "knip --files",
"assets:replace": "zx ./scripts/replace-assets.mjs"
},
"dependencies": {
Expand Down Expand Up @@ -232,4 +232,4 @@
"vite-plugin-electron": "0.4.9",
"yargs": "^17.0.0"
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^5.0.1",
"knip": "^5.30.5",
"nyc": "^15.1.0",
"prettier": "^3.0.3",
"rimraf": "^4.4.1",
Expand Down
Loading

0 comments on commit f42125e

Please sign in to comment.