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

eslint-plugin-switch-case

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-switch-case

switch-case specific linting rules for ESLint

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
increased by21.89%
Maintainers
0
Weekly downloads
 
Created
Source

ESLint-Plugin-Switch-Case

Maintenance Status NPM version Build Status

Switch-case-specific linting rules for ESLint.

Installation

Install ESLint either locally or globally.

$ npm install eslint

If you installed ESLint globally, you have to install the plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-switch-case

Configuration

Add a plugins section and specify eslint-plugin-switch-case as a plugin.

Then, enable all of the rules that you would like to use.

This plugin exports a recommended configuration that enforces all the rules. You can configure the plugin as follows:

{
  "plugins": ["switch-case"],
  "extends": ["plugin:switch-case/recommended"]
}

List of provided rules

Rules are divided into categories for your convenience. All rules are off by default, unless you use one of the plugin's configurations which turn all relevant rules on.

Stylistic Issues

These rules are purely matters of style and are quite subjective.

Contributing

Contributions are always welcome!.

License

eslint-plugin-switch-case is licensed under the MIT License.

Keywords

FAQs

Package last updated on 02 Aug 2024

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