New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-silence

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-silence

Eslint config for code-quality, prevent possible errors and follow best practices

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-75.24%
Maintainers
1
Weekly downloads
 
Created
Source

Prettier does only focus on formatting rules like comma-style and does nothing to help with code-quality. eslint-config-silence does not regulate code style rules, but focuses on:

  • Prevent possible errors (e.g. no-cond-assign, no-unreachable)

  • Recommends best practices (e.g. no-eval, no-extend-native)

  • Code Smell Detection (e.g. no-duplicated-branches, no-identical-functions)

  • Forces the use of ES6+ features (e.g. no-var, prefer-const, prefer-spread)

  • Warnings you that complexity of the code is exceeded:

"complexity": ["warn", 20],
"max-depth": ["warn", 4],
"max-lines": ["warn", 300],
"max-params": ["warn", 3],

Usage

npm install -D eslint-config-silence

Add this to your .eslintrc file:

{
  "extends": ["eslint-config-silence"]
}

Note: You can also omit the eslint-config-

TypeScript

For TypeScript projects you can also use the additional config:

{
  "extends": ["silence/typescript"]
}

This config includes only extension rules. These rules have the same functionality but also support TypeScript.

Requirements

  • Node.js >=14
  • NPM >=7
  • ESLint >=8

Keywords

FAQs

Package last updated on 08 Mar 2022

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