JSPM

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

No-ceremony linter

Package Exports

  • blint

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

Readme

Blint

Simple JavaScript linter.

var blint = require("blint");
blint.checkFile("foo.js");
blint.checkDir("src");

When the linter encounters problems, it will write something to stdout, and set a flag, which you can retrieve with blint.success().

process.exit(blint.success() ? 0 : 1);

Both checkFile and checkDir take a second optional options argument. These are the defaults:

var defaultOptions = {
  ecmaVersion: 5,
  browser: false,
  tabs: false,
  trailing: false,
  autoSemicolons: false,
  trailingCommas: false,
  reservedProps: false,
  declareGlobals: true,
  blob: false
};

Released under an MIT license.