Use Knip for detecting dead code (#3426)
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@reduxjs/toolkit": "^1.9.7",
|
||||
"clsx": "^2.1.1",
|
||||
"http-status-codes": "^2.3.0",
|
||||
"kbar": "^0.1.0-beta.45",
|
||||
"local-storage-fallback": "^4.1.2",
|
||||
"lodash": "^4.17.21",
|
||||
@@ -36,7 +38,8 @@
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"playwright": "PORT=5005 USE_BABEL_PLUGIN_ISTANBUL=1 react-app-rewired start",
|
||||
"find-deadcode": "ts-prune -s consoleApi.ts | sh -c '(! grep -v \"used in module\")'"
|
||||
"find-deadcode": "knip",
|
||||
"format": "prettier . --write --log-level warn"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app",
|
||||
@@ -60,6 +63,7 @@
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
||||
"@playwright/test": "^1.45.2",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/lodash": "^4.17.7",
|
||||
"@types/luxon": "^3.4.2",
|
||||
"@types/node": "20.14.11",
|
||||
@@ -75,6 +79,7 @@
|
||||
"@types/webpack-env": "^1.18.5",
|
||||
"babel-plugin-istanbul": "^6.1.1",
|
||||
"customize-cra": "^1.0.0",
|
||||
"knip": "^5.27.2",
|
||||
"minio": "^8.0.1",
|
||||
"nyc": "^15.1.0",
|
||||
"prettier": "3.3.3",
|
||||
@@ -82,7 +87,6 @@
|
||||
"react-app-rewired": "^2.2.1",
|
||||
"react-scripts": "5.0.1",
|
||||
"testcafe": "3.6.2",
|
||||
"ts-prune": "^0.10.3",
|
||||
"typescript": "^5.5.3"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
Reference in New Issue
Block a user