Package Exports
- coffeelint-prefer-symbol-operator
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-prefer-symbol-operator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
coffeelint-prefer-symbol-operator
==================================
Forked from https://github.com/parakeety/coffeelint-prefer-english-operator.
coffeelint-prefer-symbol-operator is a plugin of coffeelint. It checks for is
, isnt
, and
, or
, preferring instead ==
, !=
, &&
, ||
.
a is a #no
a == a #yes
a isnt a #no
a != a #yes
a and b #no
a && b #yes
a or b #no
a || b #yes
a or= b #no
a ||= b #yes
How to Install
- add
"coffeelint-prefer-symbol-operator": "0.1.0"
asdevDependencies
inpackage.json
npm install
How to Use
In your coffeelint.json
, add
{
// other lint rules
{
"prefer_symbol_operator": {
"module": "coffeelint-prefer-symbol-operator",
"level": "error"
}
}
}
and run coffeelint
.