0.5.1 • Published 6 years ago
coffeescope2 v0.5.1
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,
"$": true
},
"overwrite": true,
"shadow": true,
"shadow_builtins": false,
"shadow_exceptions": ["err", "next"],
"undefined": true,
"hoist_local": true,
"hoist_parent": true,
"unused_variables": true,
"unused_arguments": false,
"unused_classes": true
},
Full list of options and values
License
coffeescope2 is licensed under the MIT license.
0.5.1
6 years ago
0.5.0
6 years ago
0.4.6
7 years ago
0.4.5
7 years ago
0.4.4
7 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.10
8 years ago
0.3.9
8 years ago
0.3.8
8 years ago
0.3.7
8 years ago
0.3.6
8 years ago
0.3.5
8 years ago
0.3.4
8 years ago
0.3.3
8 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago