eslint-parallel

1.2.1 • Public • Published

eslint-parallel

Tiny eslint wrapper to allow executing javascript linting in parallel.

Install

npm install eslint-parallel

Access CLI

node_modules/.bin/eslint-parallel src/js/**

Options

See ESLint Docs for all the options

API Usage

  import Linter from 'eslint-parallel';
  new Linter({
    cache: true,
    cwd: process.cwd()
  }).execute(['src/js/**']).then(
    (result) => {
      const failed = result.errorCount || result.warningCount;

      if (failed) {
        // failed
      } else {
        // passed
      }
    },
    (err) => {
      console.log(err);
      process.exit(1);
    }
  );

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-parallel

Homepage

eslint.org

Weekly Downloads

2,092

Version

1.2.1

License

Apache-2.0

Unpacked Size

21 kB

Total Files

8

Last publish

Collaborators

  • alansouzati
  • pgadmin