0.5.1 • Published 7 years ago

coffeescope2 v0.5.1

Weekly downloads
9,976
License
MIT
Repository
github
Last release
7 years ago

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 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

↑ Back to top

License

coffeescope2 is licensed under the MIT license.

↑ Back to top

0.5.1

7 years ago

0.5.0

8 years ago

0.4.6

8 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago