JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 533
  • Score
    100M100P100Q89044F
  • License MIT

Package Exports

  • coffeescope2

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 (coffeescope2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

coffeescope2

Circle CI Dependencies Dev Dependencies Coverage Status

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 keep my custom rules at the bottom):

"check_scope": {
    "module": "coffeescope2",
    "level": "warn",
    "environments": ["es5"],
    "globals": {
        "jQuery": false,
        "MY_WRITABLE_SUPER_GLOBAL": true
    },
    "overwrite": true,
    "shadow": true,
    "shadow_builtins": false,
    "shadow_exceptions": ["err", "next"],
    "undefined": true,
    "unused_variables": true,
    "unused_arguments": false
},

Full list of options and values

↑ Back to top

License

coffeescope2 is licensed under the MIT license.

↑ Back to top