==================================
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
- add
"coffeelint-prefer-english-operator": "0.1.0"
asdevDependencies
inpackage.json
npm install
In your coffeelint.json
, add
{
// other lint rules
{
"prefer_english_operator": {
"module": "coffeelint-prefer-english-operator",
"level": "error"
}
}
}
and run coffeelint
.