Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

coffeelint-no-explicit-parens

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeelint-no-explicit-parens

CoffeeLint plugin for prohibiting explicit parens in function calls.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

coffeelintrule

FAQs

Package last updated on 01 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts