coffeelint-prefer-fewer-parens
Detects situations where you could have avoided using parens
Overview
This project defines a CoffeeLint rule named
prefer_fewer_parens
.
This rule detects situations where you could have used implicit parens.
CoffeeLint has a rule named no_implicit_parens
. This
is "sort of" the opposite of that.
Before
runLater-> anotherFn12 gulpfnsomeArg pipeanotherArg pipelastArg alert1alert12
After
runLater -> anotherFn 12 gulpfnsomeArg pipeanotherArg pipe lastArg alert 1alert 12
See the specs for additional examples.
Installation
- Setup CoffeeLint in your project and verify that it works
- Add this module as a
devDependency
:npm install -D coffeelint-prefer-fewer-parens
- Update your
coffeelint.json
configuration file as described below.
Configuration
Add the following snippet to your coffeelint.json
config: