Skip to content

Commit

Permalink
updated the knip rules a bit
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Adelöw <[email protected]>
  • Loading branch information
freben committed Feb 8, 2024
1 parent 8afb5c6 commit e97cc0b
Show file tree
Hide file tree
Showing 272 changed files with 451 additions and 2,046 deletions.
8 changes: 0 additions & 8 deletions packages/app-defaults/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
# Knip report

## Unused devDependencies (3)

| Name | Location |
|:-----------------------|:-------------|
| @backstage/cli | package.json |
| @backstage/test-utils | package.json |
| @testing-library/react | package.json |

11 changes: 5 additions & 6 deletions packages/app-next-example-plugin/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Knip report

## Unused devDependencies (3)
## Unused devDependencies (2)

| Name | Location |
|:---------------|:-------------|
| msw | package.json |
| cross-fetch | package.json |
| @backstage/cli | package.json |
| Name | Location |
|:------------|:-------------|
| msw | package.json |
| cross-fetch | package.json |

3 changes: 1 addition & 2 deletions packages/app-next/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@
| @roadiehq/backstage-plugin-github-pull-requests | package.json |
| @backstage/plugin-techdocs-module-addons-contrib | package.json |

## Unused devDependencies (7)
## Unused devDependencies (6)

| Name | Location |
|:----------------------------|:-------------|
| cross-env | package.json |
| @types/jquery | package.json |
| @testing-library/dom | package.json |
| @types/zen-observable | package.json |
| @backstage/test-utils | package.json |
| @testing-library/react | package.json |
| @testing-library/user-event | package.json |

10 changes: 0 additions & 10 deletions packages/backend-app-api/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,3 @@
|:------------------|:-------------|
| winston-transport | package.json |

## Unused devDependencies (5)

| Name | Location |
|:------------------------------|:-------------|
| supertest | package.json |
| http-errors | package.json |
| @backstage/cli | package.json |
| @types/http-errors | package.json |
| @backstage/backend-test-utils | package.json |

21 changes: 6 additions & 15 deletions packages/backend-common/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,13 @@
| @types/webpack-env | package.json |
| @manypkg/get-packages | package.json |

## Unused devDependencies (12)
## Unused devDependencies (3)

| Name | Location |
|:------------------------------|:-------------|
| msw | package.json |
| mysql2 | package.json |
| supertest | package.json |
| http-errors | package.json |
| better-sqlite3 | package.json |
| @backstage/cli | package.json |
| @types/supertest | package.json |
| @types/webpack-env | package.json |
| @types/http-errors | package.json |
| aws-sdk-client-mock | package.json |
| @aws-sdk/util-stream-node | package.json |
| @backstage/backend-test-utils | package.json |
| Name | Location |
|:-------------------|:-------------|
| mysql2 | package.json |
| better-sqlite3 | package.json |
| @types/webpack-env | package.json |

## Referenced optional peerDependencies (1)

Expand Down
9 changes: 1 addition & 8 deletions packages/backend-defaults/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# Knip report

## Unused dependencies (1)
## Unused devDependencies (1)

| Name | Location |
|:------------------------------|:-------------|
| @backstage/backend-plugin-api | package.json |

## Unused devDependencies (2)

| Name | Location |
|:------------------------------|:-------------|
| @backstage/cli | package.json |
| @backstage/backend-test-utils | package.json |

4 changes: 2 additions & 2 deletions packages/backend-defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
},
"dependencies": {
"@backstage/backend-app-api": "workspace:^",
"@backstage/backend-common": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^"
"@backstage/backend-common": "workspace:^"
},
"devDependencies": {
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^"
},
Expand Down
6 changes: 0 additions & 6 deletions packages/backend-dev-utils/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# Knip report

## Unused devDependencies (1)

| Name | Location |
|:---------------|:-------------|
| @backstage/cli | package.json |

13 changes: 1 addition & 12 deletions packages/backend-dynamic-feature-service/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
# Knip report

## Unused dependencies (3)
## Unused dependencies (2)

| Name | Location |
|:--------------------------------|:-------------|
| @backstage/types | package.json |
| @backstage/errors | package.json |
| @backstage/plugin-search-common | package.json |

## Unused devDependencies (5)

| Name | Location |
|:------------------------------|:-------------|
| @backstage/cli | package.json |
| wait-for-expect | package.json |
| @backstage/config-loader | package.json |
| @backstage/backend-app-api | package.json |
| @backstage/backend-test-utils | package.json |

6 changes: 0 additions & 6 deletions packages/backend-next/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@
| @backstage/plugin-search-backend-node | package.json |
| @backstage/plugin-catalog-backend-module-openapi | package.json |

## Unused devDependencies (1)

| Name | Location |
|:---------------|:-------------|
| @backstage/cli | package.json |

7 changes: 0 additions & 7 deletions packages/backend-openapi-utils/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@
| lodash | package.json |
| @backstage/backend-plugin-api | package.json |

## Unused devDependencies (2)

| Name | Location |
|:---------------|:-------------|
| supertest | package.json |
| @backstage/cli | package.json |

6 changes: 0 additions & 6 deletions packages/backend-plugin-api/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# Knip report

## Unused devDependencies (1)

| Name | Location |
|:---------------|:-------------|
| @backstage/cli | package.json |

7 changes: 0 additions & 7 deletions packages/backend-tasks/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# Knip report

## Unused devDependencies (2)

| Name | Location |
|:----------------|:-------------|
| @backstage/cli | package.json |
| wait-for-expect | package.json |

8 changes: 0 additions & 8 deletions packages/backend-test-utils/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,3 @@
| better-sqlite3 | package.json |
| @backstage/errors | package.json |

## Unused devDependencies (3)

| Name | Location |
|:-----------------|:-------------|
| supertest | package.json |
| @backstage/cli | package.json |
| @types/supertest | package.json |

3 changes: 1 addition & 2 deletions packages/backend/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
| @backstage/plugin-azure-sites-common | package.json |
| @backstage/plugin-scaffolder-backend-module-rails | package.json |

## Unused devDependencies (3)
## Unused devDependencies (2)

| Name | Location |
|:---------------------------------|:-------------|
| @types/luxon | package.json |
| @backstage/cli | package.json |
| @types/express-serve-static-core | package.json |

7 changes: 0 additions & 7 deletions packages/catalog-client/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# Knip report

## Unused devDependencies (2)

| Name | Location |
|:---------------|:-------------|
| msw | package.json |
| @backstage/cli | package.json |

4 changes: 1 addition & 3 deletions packages/catalog-model/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Knip report

## Unused devDependencies (3)
## Unused devDependencies (1)

| Name | Location |
|:-------------------|:-------------|
| yaml | package.json |
| @backstage/cli | package.json |
| @types/json-schema | package.json |

6 changes: 0 additions & 6 deletions packages/cli-common/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# Knip report

## Unused devDependencies (1)

| Name | Location |
|:---------------|:-------------|
| @backstage/cli | package.json |

7 changes: 0 additions & 7 deletions packages/cli-node/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,3 @@
|:-------|:-------------|
| semver | package.json |

## Unused devDependencies (2)

| Name | Location |
|:------------------------------|:-------------|
| @backstage/cli | package.json |
| @backstage/backend-test-utils | package.json |

7 changes: 1 addition & 6 deletions packages/cli/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@
| @spotify/eslint-config-react | package.json |
| @typescript-eslint/eslint-plugin | package.json |

## Unused devDependencies (18)
## Unused devDependencies (13)

| Name | Location |
|:----------------------------------------|:-------------|
| msw | package.json |
| del | package.json |
| ts-node | package.json |
| nodemon | package.json |
Expand All @@ -46,13 +45,9 @@
| @backstage/theme | package.json |
| @types/http-proxy | package.json |
| @backstage/dev-utils | package.json |
| @backstage/test-utils | package.json |
| @backstage/core-app-api | package.json |
| @backstage/backend-common | package.json |
| @backstage/core-plugin-api | package.json |
| @backstage/core-components | package.json |
| @types/terser-webpack-plugin | package.json |
| @backstage/backend-test-utils | package.json |
| @backstage/backend-plugin-api | package.json |
| @types/rollup-plugin-peer-deps-external | package.json |

Expand Down
17 changes: 4 additions & 13 deletions packages/codemods/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
# Knip report

## Unused dependencies (2)
## Unused devDependencies (1)

| Name | Location |
|:------------------------|:-------------|
| jscodeshift | package.json |
| jscodeshift-add-imports | package.json |

## Unused devDependencies (3)

| Name | Location |
|:-------------------|:-------------|
| ts-node | package.json |
| @backstage/cli | package.json |
| @types/jscodeshift | package.json |
| Name | Location |
|:--------|:-------------|
| ts-node | package.json |

9 changes: 0 additions & 9 deletions packages/config-loader/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
# Knip report

## Unused devDependencies (4)

| Name | Location |
|:------------------------------|:-------------|
| msw | package.json |
| zen-observable | package.json |
| @backstage/cli | package.json |
| @backstage/backend-test-utils | package.json |

7 changes: 0 additions & 7 deletions packages/config/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# Knip report

## Unused devDependencies (2)

| Name | Location |
|:----------------------|:-------------|
| @backstage/cli | package.json |
| @backstage/test-utils | package.json |

6 changes: 1 addition & 5 deletions packages/core-app-api/knip-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@
|:--------|:-------------|
| history | package.json |

## Unused devDependencies (11)
## Unused devDependencies (7)

| Name | Location |
|:-----------------------------|:-------------|
| msw | package.json |
| @backstage/cli | package.json |
| react-router-beta | package.json |
| react-router-stable | package.json |
| @testing-library/dom | package.json |
| react-router-dom-beta | package.json |
| @backstage/test-utils | package.json |
| @testing-library/react | package.json |
| react-router-dom-stable | package.json |
| @testing-library/user-event | package.json |
| @testing-library/react-hooks | package.json |
Expand Down
19 changes: 0 additions & 19 deletions packages/core-compat-api/knip-report.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
# Knip report

## Unused dependencies (1)

| Name | Location |
|:------------------------|:-------------|
| @backstage/core-app-api | package.json |

## Unused devDependencies (8)

| Name | Location |
|:--------------------------------------|:-------------|
| @backstage/cli | package.json |
| @testing-library/react | package.json |
| @backstage/plugin-catalog | package.json |
| @backstage/plugin-puppetdb | package.json |
| @backstage/frontend-app-api | package.json |
| @backstage/plugin-stackstorm | package.json |
| @backstage/frontend-test-utils | package.json |
| @oriflame/backstage-plugin-score-card | package.json |

Loading

0 comments on commit e97cc0b

Please sign in to comment.