Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-adjunct

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-adjunct - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

16

lib/utils.js

@@ -20,4 +20,2 @@ // From kcd-scripts

const hasFile = (...p) => fs.existsSync(fromRoot(...p))
const ifFile = (files, t, f) =>
arrify(files).some((file) => hasFile(file)) ? t : f

@@ -29,5 +27,2 @@ const hasPkgProp = (props) => arrify(props).some((prop) => has(pkg, prop))

const ifPkgSubProp = (pkgProp) => (props, t, f) =>
hasPkgSubProp(pkgProp)(props) ? t : f
const hasScript = hasPkgSubProp('scripts')

@@ -40,8 +35,2 @@ const hasPeerDep = hasPkgSubProp('peerDependencies')

const ifPeerDep = ifPkgSubProp('peerDependencies')
const ifDep = ifPkgSubProp('dependencies')
const ifDevDep = ifPkgSubProp('devDependencies')
const ifAnyDep = (deps, t, f) => (hasAnyDep(arrify(deps)) ? t : f)
const ifScript = ifPkgSubProp('scripts')
function parseEnv(name, def) {

@@ -108,7 +97,2 @@ if (envIsSet(name)) {

hasAnyDep,
ifDep,
ifDevDep,
ifFile,
ifPeerDep,
ifScript,
parseEnv,

@@ -115,0 +99,0 @@ pkg,

6

package.json
{
"name": "eslint-config-adjunct",
"version": "4.0.0",
"version": "4.0.1",
"author": "David J. Bradshaw",

@@ -30,3 +30,5 @@ "license": "MIT",

"arrify": "^2.0.1",
"lodash.has": "^4.5.2"
"cosmiconfig": "^6.0.0",
"lodash.has": "^4.5.2",
"read-pkg-up": "^7.0.1"
},

@@ -33,0 +35,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc