Skip to content

Commit

Permalink
fix(linter): fix missing dependencies fixer reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Nov 24, 2023
1 parent 6e7141b commit c0abb82
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 c0abb82

Please sign in to comment.