Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@faulty/eslint-parallel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faulty/eslint-parallel

Tiny eslint wrapper to allow executing javascript linting in parallel.

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-parallel

Tiny eslint wrapper to allow executing javascript linting in parallel.

Forked from https://github.com/pgAdmin/eslint-parallel to support ESLint 8.

Note that this requires a patch to eslint to expose FileEnumerator and other options that are not currently exported by that package. See the patch at ./patches/eslint@8.52.0.patch to copy it in your codebase.

Install

npm install @faulty/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);
    }
  );

FAQs

Package last updated on 31 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc