HTTPS SSH

justo.plugin.eslint

NPM version Total downloads

Justo plugin for ESLint.

Proudly made with ♥ in Valencia, Spain, EU.

Use

const eslint = require("justo.plugin.eslint");

eslint task

This task runs ./node_modules/.bin/eslint:

eslint({conf, src});
  • conf (string). .eslintrc to use. Default: ./.eslintrc.
  • src (string or string[], required). Source file(s) to parse.

Example:

eslint({
  src: ["Justo.cat.js", "src", "test"]
});

fmtParams()

The fmtParams() has been defined for being used as follows:

eslint(src:string=".")