Skip to content

Commit

Permalink
expiring-todo-comments: Do not normalize package.json (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmkr committed Dec 22, 2022
1 parent 9df6b86 commit a612b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/expiring-todo-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const messages = {
'Unexpected \'{{matchedTerm}}\' comment without any conditions: \'{{comment}}\'.',
};

const packageResult = readPkgUp.sync();
const packageResult = readPkgUp.sync({normalize: false});
const hasPackage = Boolean(packageResult);
const packageJson = hasPackage ? packageResult.packageJson : {};

Expand Down

0 comments on commit a612b2b

Please sign in to comment.