Installations
npm install eslint-plugin-enterprise-extras
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
10.15.3
NPM Version
6.4.1
Score
59.7
Supply Chain
78.5
Quality
70.7
Maintenance
100
Vulnerability
96.4
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
3,210
Last Day
1
Last Week
3
Last Month
17
Last Year
101
GitHub Statistics
MIT License
2 Stars
79 Commits
1 Forks
3 Watchers
3 Branches
5 Contributors
Updated on Jul 02, 2024
Bundle Size
99.87 kB
Minified
24.34 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.2
Package Id
eslint-plugin-enterprise-extras@1.1.2
Unpacked Size
16.83 kB
Size
4.65 kB
File Count
13
NPM Version
6.4.1
Node Version
10.15.3
Total Downloads
Cumulative downloads
Total Downloads
3,210
Last Day
0%
1
Compared to previous day
Last Week
0%
3
Compared to previous week
Last Month
41.7%
17
Compared to previous month
Last Year
-30.8%
101
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
5
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 |
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