Skip to content

Commit

Permalink
consistently name prefer-wrapper-method rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ganimomer committed Sep 6, 2015
1 parent 4bc175c commit cbd78a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Finally, enable all of the rules that you would like to use.
* [prefer-compact](docs/rules/prefer-compact.md): Prefer `_.compact` over `_.filter` for only truthy values.
* [no-double-unwrap](docs/rules/no-double-unwrap.md): Do not use `.value()` on chains that have already ended (e.g. with `max()` or `reduce()`)
* [prefer-map](docs/rules/prefer-map.md): Prefer `_.map` over `_.forEach` with a `push` inside.
* [prefer-wrapper-methods](docs/rules/prefer-wrapper-methods.md): Prefer using array and string methods in the chain and not the initial value, e.g. `_(str).split(' ')...`
* [prefer-wrapper-method](docs/rules/prefer-wrapper-method.md): Prefer using array and string methods in the chain and not the initial value, e.g. `_(str).split(' ')...`
* [prefer-invoke](docs/rules/prefer-invoke.md): Prefer using `_.invoke` over `_.map` with a method call inside.
* [prefer-thru](docs/rules/prefer-thru.md): Prefer using `_.prototype.thru` in the chain and not call functions in the initial value, e.g. `_(x).thru(f).map(g)...`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prefer wrapper methods
# Prefer wrapper method

When starting a chain with an initial value that contains a call to an array or string method, it could be better to move that method to the chain itself.

Expand Down

0 comments on commit cbd78a8

Please sign in to comment.