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

eslint-discover

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-discover

Quickly discover ESLint plugins for your dependencies

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

eslint-discover

Quickly discover ESLint plugins for your dependencies

Usage

Run npx eslint-discover in your package's root directory. Any known plugins will be discovered if you have the associated package installed (such as eslint-plugin-react for react). You can install discovered plugins as needed. They may include custom rules or shareable configs, so refer to their documentation for full usage instructions.

$ npx eslint-discover
@typescript-eslint/eslint-plugin
eslint-plugin-eslint-plugin
eslint-plugin-jest-dom
eslint-plugin-react
eslint-plugin-react-hooks
eslint-plugin-testing-library

Continuous integration (CI)

It may be useful to automatically check that relevant ESLint plugins are installed as your codebase grows and depends on new technologies. A convenient way to do this is to install eslint-discover in a continuous integration (CI) service like GitHub Actions or Travis CI. The eslint-discover command can be called in CI scripts (or any package.json scripts that your CI service runs). It will return a 1 (failure) exit code if any discovered ESLint plugins are missing, which should fail the build on most CI services.

Limitations

This currently scans dependencies and devDependencies in package.json, so it may miss globally installed packages or dependencies of other packages.

FAQs

Package last updated on 10 Nov 2019

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