Skip to content

Commit

Permalink
fix: equality check eslintrc-auto-import.json (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth authored May 17, 2023
1 parent 842cac3 commit 991f181
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ ${dts}`.trim()}\n`
if (eslintrc.enabled && eslintrc.filepath) {
promises.push(
generateESLint().then((content) => {
if (content !== lastESLint) {
lastESLint = `${content}\n`
content = `${content}\n`
if (content.trim() !== lastESLint?.trim()) {
lastESLint = content
return writeFile(eslintrc.filepath!, content)
}
}),
Expand Down

0 comments on commit 991f181

Please sign in to comment.