Skip to content

mrmr1993/coffeelint-prefer-english-operator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coffeelint-prefer-english-operator

==================================

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 94.6%
  • JavaScript 5.4%