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.
Installations
npm install @buildertrend/eslint-plugin-enterprise-extras
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
20.15.0
NPM Version
10.7.0
Score
63.2
Supply Chain
83.6
Quality
79.3
Maintenance
100
Vulnerability
96.7
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (99.46%)
JavaScript (0.54%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
buildertrend
Download Statistics
Total Downloads
23,430
Last Day
1
Last Week
2
Last Month
23
Last Year
1,187
GitHub Statistics
MIT License
2 Stars
79 Commits
1 Forks
3 Watchers
3 Branches
5 Contributors
Updated on Jul 02, 2024
Bundle Size
21.81 kB
Minified
5.20 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
23,430
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
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.
Installation
Install this ESLint plugin as a dev dependency:
1npm install --save-dev eslint-plugin-enterprise-extras
Usage
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}
Supported Rules
✅ = 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 |
Contributing
https://btwiki.atlassian.net/wiki/spaces/dv/pages/2319942076/eslint-plugin-enterprise-extras
LICENSE
MIT

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:6
Reason
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
Found 11/15 approved changesets -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-run-checks.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/buildertrend/eslint-plugin-enterprise-extras/pr-run-checks.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-run-checks.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/buildertrend/eslint-plugin-enterprise-extras/pr-run-checks.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/buildertrend/eslint-plugin-enterprise-extras/publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/buildertrend/eslint-plugin-enterprise-extras/publish.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:16
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 2 npmCommand dependencies pinned
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
- Warn: no topLevel permission defined: .github/workflows/pr-run-checks.yml:1
- Warn: no topLevel permission defined: .github/workflows/publish.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 26 are checked with a SAST tool
Score
4.7
/10
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