Name: coffeelint-forbidden-keywords
Owner: PeerLibrary
Description: A CoffeeLint rule that forbids specified keywords.
Created: 2015-05-26 03:31:31.0
Updated: 2015-05-26 03:31:32.0
Pushed: 2015-05-18 08:08:56.0
Homepage: null
Size: 158
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A CoffeeLint rule that forbids specified keywords.
This CoffeeLint rule forbids the usage of a specified subset of
the following keywords: this
, if
, unless
, while
, loop
, until
, true
, yes
, on
, false
,
no
, off
, is
, ==
, isnt
, !=
, !
, not
, &&
, and
, ||
, or
, ++
, --
, ..
, and
...
By default, yes
, no
, on
, and off
are forbidden.
install coffeelint-forbidden-keywords
Add the following configuration to coffeelint.json
:
bidden_keywords": {
odule": "coffeelint-forbidden-keywords"
forbidden: a hash that maps forbidden keywords to suggested replacements. To forbid a keyword with no suggestion, map the keyword to null.
For example:
bidden_keywords": {
odule": "coffeelint-forbidden-keywords",
orbidden": {
"yes": "true",
"no": "false",
"on": "true",
"off": "false",
"is": "==",
"isnt": "!="