Skip to content

Commit

Permalink
prefer-spread: Mention prefer-object-spread rule in docs (#1504)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
tristanHessell and sindresorhus committed Sep 5, 2021
1 parent fdadd88 commit b958745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/prefer-spread.md
Expand Up @@ -24,6 +24,8 @@ Enforces the use of [the spread operator (`...`)](https://developer.mozilla.org/

Note: [The suggestion fix may get different result](https://stackoverflow.com/questions/4547609/how-to-get-character-array-from-a-string/34717402#34717402).

To enforce the spread operator over `Object#assign()`, use the built-in [`prefer-object-spread` rule](https://eslint.org/docs/rules/prefer-object-spread).

This rule is partly fixable.

## Fail
Expand Down

0 comments on commit b958745

Please sign in to comment.