Installations
npm install eslint-plugin-sensible
Score
74.9
Supply Chain
92
Quality
78.6
Maintenance
100
Vulnerability
99.6
License
Developer
esatterwhite
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
12.22.12
NPM Version
7.24.2
Statistics
37 Commits
3 Forks
3 Watching
7 Branches
3 Contributors
Updated on 29 Oct 2021
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
234,839
Last day
-88.1%
19
Compared to previous day
Last week
-40.2%
344
Compared to previous week
Last month
-5.6%
1,902
Compared to previous month
Last year
-50.8%
27,736
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
eslint-plugin-sesnible
Better comma first indent rules for eslint, and other sane defaults
Rules
- redent: Fixes punctuation and operator indent to work better with comma first settings
- check-require: Ensures that all packages that are
required
are installed in package.json or exist locally
1'use strict' 2 3const path = require('path') 4const fs = require('fs') 5const {promisify} = require('util') 6const crypto = require('crypto') 7 8const readFile = promisify(fs.readFile) 9const EXP = /\d+/ 10const SLEEP_MS = 150 11 12const LONG_STRING = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' 13 + 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz' 14 + 'abcdefghijklmnopqrstuvwxyz' 15 16const OPTIONS = { 17 FOO: 1 18, BAR: 2 19, TEST: 'fake' 20, LONG: LONG_STRING 21} 22 23const isFoo = OPTIONS.FOO 24 ? OPTIONS.BAR 25 : OPTIONS.TEST 26 27function getOptions() { 28 return isFoo ? OPTIONS : null 29} 30 31function rand(bytes = 10, cb) { 32 crypto.randomBytes(bytes, (err, buffer) => { 33 if (err) return cb(err) 34 cb(null, buffer.toString('hex')) 35 }) 36} 37 38async function doWork(opts) { 39 const {x, y} = opts 40 try { 41 const file = await readFile(path.join(x, y)) 42 return file 43 } catch (err) { 44 console.error(err) 45 return null 46 } 47} 48 49;(async () => { 50 await new Promise((resolve) => { 51 setTimeout(resolve, SLEEP_MS) 52 }) 53 console.log('ready', 11 + 33) 54})() 55 56module.exports = { 57 ...OPTIONS 58, EXP 59, rand 60, getOptions 61, doWork 62}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 4/23 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/esatterwhite/eslint-plugin-sensible/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/esatterwhite/eslint-plugin-sensible/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/esatterwhite/eslint-plugin-sensible/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/esatterwhite/eslint-plugin-sensible/release.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/release.yml:28
- Warn: npmCommand not pinned by hash: .github/workflows/release.yml:42
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/release.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
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact v3.1.0 not signed: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/133624221
- Warn: release artifact v3.0.3 not signed: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/97241454
- Warn: release artifact v3.0.2 not signed: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/94986177
- Warn: release artifact v3.0.1 not signed: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/77465318
- Warn: release artifact v3.0.0 not signed: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/52346121
- Warn: release artifact v3.1.0 does not have provenance: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/133624221
- Warn: release artifact v3.0.3 does not have provenance: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/97241454
- Warn: release artifact v3.0.2 does not have provenance: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/94986177
- Warn: release artifact v3.0.1 does not have provenance: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/77465318
- Warn: release artifact v3.0.0 does not have provenance: https://api.github.com/repos/esatterwhite/eslint-plugin-sensible/releases/52346121
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 17 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2024-11-25
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