Skip to content

Commit

Permalink
fix(linter): fix missing dependencies fixer reducer (#20410)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Nov 25, 2023
1 parent f2895bd commit 98883bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/rules/dependency-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export default ESLintUtils.RuleCreator(() => ``)<Options, MessageIds>({
},
fix: (fixer) => {
expectedDependencyNames.sort().reduce((acc, d) => {
acc[d] = rootPackageJsonDeps[d] || dependencies[d];
acc[d] = rootPackageJsonDeps[d] || npmDependencies[d];
return acc;
}, projPackageJsonDeps);

Expand Down

0 comments on commit 98883bb

Please sign in to comment.