JSPM

coffeelint-no-explicit-parens

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q38674F

CoffeeLint plugin for prohibiting explicit parens in function calls.

Package Exports

  • coffeelint-no-explicit-parens

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coffeelint-no-explicit-parens) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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!')
)