JSPM

coffeelint-use-strict

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

A CoffeeLint rule that enforces usage of strict mode

Package Exports

  • coffeelint-use-strict

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

Readme

coffeelint-use-strict NPM version

Build Status Coverage Status Dependency Status devDependency Status

CoffeeLint rule that enforces usage of strict mode.

example-output

Usage

First, install coffeelint-use-strict as a development dependency:

npm install --save-dev coffeelint-use-strict

Then, add a "use_strict" key with value {"module": "coffeelint-use-strict"} to your coffeelint.json, e.g.

{
    "use_strict": {
        "module": "coffeelint-use-strict",
        "level": "error",
        "allowGlobal": false,
        "requireGlobal": false
    }
}

The coffeelint cli will then load this rule automatically. See the documentation for other ways to make use of custom rules.

Options

level

Type: String Default: 'error'

The severity level of the violated rule. level must be one of 'ignore', 'warn', or 'error'.

allowGlobal

Type: Boolean Default: true

Allow the 'use strict' statement to be at the top of a file.

requireGlobal

Type: Boolean Default: false

Require the 'use strict' statement to be at the top of a file.

License

MIT License © Jan Raasch