Skip to content

Commit

Permalink
Update consistent-empty-array-spread.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 9, 2024
1 parent 9e43d5b commit 4007c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/consistent-empty-array-spread.md
Expand Up @@ -7,7 +7,7 @@
<!-- end auto-generated rule header -->
<!-- Do not manually modify this header. Run: `npm run fix:eslint-docs` -->

When spreading a ternary in array, we can use both `[]` and `''` as fallback, but it's nicer to have consistent type in "consequent" and "alternate".
When spreading a ternary in an array, we can use both `[]` and `''` as fallbacks, but it's better to have consistent types in both branches.

## Fail

Expand Down

0 comments on commit 4007c46

Please sign in to comment.