JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q30563F
  • License Apache-2.0

Failure as a service

Package Exports

  • faceplant

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

Readme

Build Status

faceplant

This repository contains various scripts that help prevent deploying bad code to production using TSLint.

Install

Install the package using NPM:

yarn add --dev faceplant

Update your tslint.json file to extend this package:

{
  "extends": [
    "faceplant"
  ],
  "rules": {
    "no-unset-env-variables": {
        "options": { "useRealEnv": true },
        "severity": "error"
    },
  }
}

no-unset-env-variables

Makes sure that environmental variables are set as they should be.

Options

useRealEnv (default false)

Use the real environment.

envFilePaths (default [])

Paths to files where the environmental variables are defined. They should be defined in a normal-ish way, like

FOO=1
BAR=2

shouldBeDefined (default [])

Checks that these environmental variables are defined in the real env or the env file paths.