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

eslint-plugin-clutter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-clutter

ESLint plugin for detecting redundant and unnecessary dependencies.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

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

eslint-plugin-clutter

ESLint plugin for detecting micro-dependencies and redundant packages.

The JavaScript ecosystem is filled with clutter:

  • Micro-packages - one-liners, often with native equivalents you should use instead
  • Obsolete packages - packages made obsolete by a better, newer package. NPM should take care of this but not all authors remember to mark their packages as obsolete
  • Obsolete packages (native replacements) - packages no longer needed because the platform (e.g. browsers, node, etc.) support the functionality out of the box

Micro-packages are a bad idea, a horrible idea. They are high risk, often untrusted and usually completely unnecessary. Let's get rid of them.

Install

$ npm i -D eslint eslint-plugin-clutter

Usage

Add clutter to the plugins section of your .eslintrc file:

{
  "plugins": ["clutter"]
}

Configure your rules like so:

{
  "rules": {
    "clutter/no-unnecessary-dependency": "error"
  }
}

Configuration

You may also extend the recommended configuration like so:

{
  "extends": ["plugin:clutter/recommended"]
}

Supported Rules

Rule
clutter/no-unnecessary-dependencyDisallows unnecessary dependencies

Keywords

FAQs

Package last updated on 02 Sep 2020

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