Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 956 Bytes

File metadata and controls

44 lines (31 loc) · 956 Bytes

#[DEPRECATED] coffeelint-prefer-english-operator

** This custom rule has been merged into coffeelint **

coffeelint-prefer-english-operator is a plugin of coffeelint. It checks for ==, !=, &&, ||. Coding style such as polarmobile prefers english style operators.

a is a #yes
a == a #no

a isnt a #yes
a != a #no

a and b #yes
a && b #no

a or b #yes
a || b #no

How to Install

  1. add "coffeelint-prefer-english-operator": "0.1.0" as devDependencies in package.json
  2. npm install

How to Use

In your coffeelint.json, add

{
  // other lint rules
  {
    "prefer_english_operator": {
      "module": "coffeelint-prefer-english-operator",
      "level": "error"
    }
  }
}

and run coffeelint.