Package Exports
- coffeelint-variable-scope
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-variable-scope) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
coffeelint-variable-scope 
CoffeeLint rule that warns you about overwriting outer scope variable.
✗ ./level.coffee
⚡ #1-8: Outer scope variable overwrite. a.
✗ Lint! » 2 errors and 1 warning in 2 files
Means: Variable a
assigned in 1st
line and overwriten in 8th
line of level.coffee
file.
Installation
npm install coffeelint-variable-scope
Usage
Put this in your coffeelint config:
"variable_scope": {
"module": "coffeelint-variable-scope",
"scopeDiff": 1
}
Options
scopeDiff
- Reports an error if upper and lower variable
assign scope level difference is equal/bigger than scopeDiff
. Default: 1
.
Test
npm test