README
coffeescope2
coffeelint plugin that handles variables and their scope. It can detect:
- attempting to access an undefined variable
- overwriting or shadowing a variable from an outer scope
- unused variables and arguments
Table of Contents
Installation
Add coffeescope to your project's dependencies
npm install --save coffeescope2
Insert this somewhere into your coffeelint.json
file (I like to keep my
custom rules at the bottom):
"check_scope": {
"module": "coffeescope2",
"level": "warn",
"environments": ["es5"],
"globals": {
"jQuery": true,
"