Gathering detailed insights and metrics for eslint-plugin-switch-case
Gathering detailed insights and metrics for eslint-plugin-switch-case
Gathering detailed insights and metrics for eslint-plugin-switch-case
Gathering detailed insights and metrics for eslint-plugin-switch-case
npm install eslint-plugin-switch-case
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
17 Stars
33 Commits
1 Forks
2 Watching
9 Branches
4 Contributors
Updated on 02 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-57.6%
3,050
Compared to previous day
Last week
-24.3%
25,956
Compared to previous week
Last month
59%
105,793
Compared to previous month
Last year
47%
680,763
Compared to previous year
Switch-case-specific linting rules for ESLint.
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
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:
1{ 2 "plugins": ["switch-case"], 3 "extends": ["plugin:switch-case/recommended"] 4}
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.
These rules are purely matters of style and are quite subjective.
Contributions are always welcome!.
eslint-plugin-switch-case is licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
Reason
Found 8/24 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More