Skip to content

Commit

Permalink
fix: support eslintrc.globalsPropValue: false correctly (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 9, 2023
1 parent c2a948f commit 4f5d0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/eslintrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function generateESLintConfigs(
.filter(Boolean)
.sort()
.forEach((name) => {
eslintConfigs.globals[name] = eslintrc.globalsPropValue || true
eslintConfigs.globals[name] = eslintrc.globalsPropValue
})
const jsonBody = JSON.stringify(eslintConfigs, null, 2)
return jsonBody
Expand Down

0 comments on commit 4f5d0d0

Please sign in to comment.