Skip to content

Commit cc6dfc5

Browse files
JoshLuedemanCopilot
andcommitted
fix: add eslint-plugin-jest to root devDependencies
The @backstage/cli eslint-factory config references plugin:jest/recommended, but eslint-plugin-jest was nested inside @backstage/cli/node_modules/ and not hoisted to the root. Adding it to root devDependencies ensures ESLint can resolve it from packages/backend/ and packages/app/. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b79dbb1 commit cc6dfc5

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

backstage/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@playwright/test": "^1.32.3",
3737
"@types/jest": "^30.0.0",
3838
"@types/node": "^25.4.0",
39+
"eslint-plugin-jest": "^28.0.0",
3940
"node-gyp": "^10.0.0",
4041
"prettier": "^2.3.2",
4142
"typescript": "~5.4.0"

backstage/yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18482,6 +18482,24 @@ __metadata:
1848218482
languageName: node
1848318483
linkType: hard
1848418484

18485+
"eslint-plugin-jest@npm:^28.0.0":
18486+
version: 28.14.0
18487+
resolution: "eslint-plugin-jest@npm:28.14.0"
18488+
dependencies:
18489+
"@typescript-eslint/utils": "npm:^6.0.0 || ^7.0.0 || ^8.0.0"
18490+
peerDependencies:
18491+
"@typescript-eslint/eslint-plugin": ^6.0.0 || ^7.0.0 || ^8.0.0
18492+
eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
18493+
jest: "*"
18494+
peerDependenciesMeta:
18495+
"@typescript-eslint/eslint-plugin":
18496+
optional: true
18497+
jest:
18498+
optional: true
18499+
checksum: 10c0/da9c99dd8a1a80aa0c126ff4558882451dcee61b7e4c88e2407ac27d0c86fad2951384a4b037748e26f8743890b4628c6917b0760b01b7017c53fb29768584bc
18500+
languageName: node
18501+
linkType: hard
18502+
1848518503
"eslint-plugin-jest@npm:^28.9.0":
1848618504
version: 28.11.0
1848718505
resolution: "eslint-plugin-jest@npm:28.11.0"
@@ -29297,6 +29315,7 @@ __metadata:
2929729315
"@playwright/test": "npm:^1.32.3"
2929829316
"@types/jest": "npm:^30.0.0"
2929929317
"@types/node": "npm:^25.4.0"
29318+
eslint-plugin-jest: "npm:^28.0.0"
2930029319
node-gyp: "npm:^10.0.0"
2930129320
prettier: "npm:^2.3.2"
2930229321
typescript: "npm:~5.4.0"

0 commit comments

Comments
 (0)