0.1.1 • Published 9 years ago
coffeelint-taboo v0.1.1
coffeelint-taboo
coffeelint plugin that denies access to certain identifiers that are undesirable in production such as:
it.onlyordescribe.only- the
consoleobject debuggerstatements
Expected use case: ensuring no debug code gets through into production (when run as part of CI). I learned this the hard way so you don't have to!
Table of Contents
Installation
Add coffeelint-taboo to your project's dependencies
npm install --save coffeelint-tabooInsert this somewhere into your coffeelint.json file (I like to keep my
custom rules at the bottom):
"reject_identifiers": {
"module": "coffeelint-taboo",
"level": "error",
"identifiers": ["debugger", "console", "it.only", "describe.only"]
},License
coffeelint-taboo is licensed under the MIT license.