Gathering detailed insights and metrics for @buildertrend/eslint-plugin-enterprise-extras
Gathering detailed insights and metrics for @buildertrend/eslint-plugin-enterprise-extras
Gathering detailed insights and metrics for @buildertrend/eslint-plugin-enterprise-extras
Gathering detailed insights and metrics for @buildertrend/eslint-plugin-enterprise-extras
This plugin adds extra ESLint rules that may be more suitable for an enterprise environment. The rules were created for use within Buildertrend, but feel free to request or propose any ESLint rules that may fall under this umbrella.
npm install @buildertrend/eslint-plugin-enterprise-extras
Typescript
Module System
Node Version
NPM Version
63.2
Supply Chain
83.6
Quality
79.3
Maintenance
100
Vulnerability
96.7
License
TypeScript (99.46%)
JavaScript (0.54%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
23,430
Last Day
1
Last Week
2
Last Month
23
Last Year
1,187
MIT License
2 Stars
79 Commits
1 Forks
3 Watchers
3 Branches
5 Contributors
Updated on Jul 02, 2024
Minified
Minified + Gzipped
Latest Version
9.0.0
Package Id
@buildertrend/eslint-plugin-enterprise-extras@9.0.0
Unpacked Size
61.32 kB
Size
11.26 kB
File Count
23
NPM Version
10.7.0
Node Version
20.15.0
Published on
Jul 02, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-77.8%
2
Compared to previous week
Last Month
-11.5%
23
Compared to previous month
Last Year
-77%
1,187
Compared to previous year
This plugin adds extra ESLint rules that may be more suitable for an enterprise environment. The rules were created for use within Buildertrend, but feel free to request or propose any ESLint rules that may fall under this umbrella.
Install this ESLint plugin as a dev dependency:
1npm install --save-dev eslint-plugin-enterprise-extras
Edit your project's .eslintrc.js
configuration to load the plugin:
1module.exports = { 2 plugins: ["enterprise-extras"], 3 rules: { 4 // "enterprise-extras/no-href-assignment": "error" 5 // ... 6 // "enterprise-extras/...": "..." 7 } 8}
Alternatively, you could use the recommended
or all
preset rule configurations:
1module.exports = { 2 extends: ["plugin:enterprise-extras/recommended"], 3 // extends: ["plugin:enterprise-extras/all"], 4 rules: { 5 // You can override the recommended rules here 6 } 7}
✅ = Recommended 🔧 = Auto-fixable
Name | ✅ | 🔧 | Description |
---|---|---|---|
no-href-assignment | ✅ | 🔧 | Prefers location.assign instead of location.href = |
private-component-methods | ✅ | 🔧 | Requires that all methods of react components are private (except reserved lifecycle methods) |
no-unhandled-scheduling | ✅ | setTimeout and setInterval calls should be cleared | |
unregister-events | ✅ | Ensures all events registered in React components are unregistered when component unmounts | |
no-unstable-dependencies | ✅ | Helps find dependencies that are used in React hook dependency arrays that will change values every time the component render is called | |
require-state-property-definition | ✅ | Check for expected/unexpected state definitions in class components | |
max-indentation | prevents code blocks from exceeded a specified number of indents | ||
no-deprecated-element | ✅ | 🔧 | Prevents deprecated elements from being used |
https://btwiki.atlassian.net/wiki/spaces/dv/pages/2319942076/eslint-plugin-enterprise-extras
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 11/15 approved changesets -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-10
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