coffeelint-no-explicit-parens
CoffeeLint plugin for prohibiting explicit parens in function calls.
Last updated 5 years ago by tarruda .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install coffeelint-no-explicit-parens 
SYNC missed versions from official npm registry.

CoffeeLint No Explicit Parens

Build Status

CoffeeLint plugin for prohibiting explicit parens in function calls.

Usage

Install it:

$ npm install --save-dev coffeelint-no-explicit-parens

Use it:

{
  "no_explicit_parens": {
    "module": "coffeelint-no-explicit-parens",
    "level": "ignore",
    "strict": true
  }
}

It is possible to use this rule with no_implicit_parens if both are configured with strict set to false. This would lead to coffeelint enforcing a mixed style for parens: Explicit for single line calls and implicit for multi line calls. For example:

# good
myFunction(a, b, c)
# good
myFunction a, ->
  console.log('hello!')
# good
myFunction(a, -> console.log('hello!'))
# bad
myFunction a, b, c
# bad
myFunction(a, ->
  console.log('hello!')
)
# bad
myFunction(a, -> console.log('hello!')
)

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |