Gathering detailed insights and metrics for eslint-plugin-sensible
Gathering detailed insights and metrics for eslint-plugin-sensible
Gathering detailed insights and metrics for eslint-plugin-sensible
Gathering detailed insights and metrics for eslint-plugin-sensible
npm install eslint-plugin-sensible
74.9
Supply Chain
92
Quality
78.6
Maintenance
100
Vulnerability
99.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
37 Commits
3 Forks
3 Watching
7 Branches
3 Contributors
Updated on 29 Oct 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
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
Better comma first indent rules for eslint, and other sane defaults
required
are installed in package.json or exist locally1'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
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
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
Project has not signed or included provenance with any releases.
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-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