Socket
Socket
Sign inDemoInstall

lint-staged

Package Overview
Dependencies
61
Maintainers
1
Versions
245
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.2.0 to 12.2.1

11

lib/getConfigGroups.js

@@ -59,6 +59,3 @@ /** @typedef {import('./index').Logger} Logger */

return loadConfig({ cwd: dir }, logger).then(({ config, filepath }) => {
if (!config) {
logger.error(`${ConfigNotFoundError.message}.`)
throw ConfigNotFoundError
}
if (!config) return

@@ -77,3 +74,9 @@ if (filepath in configGroups) {

// Throw if no configurations were found
if (Object.keys(configGroups).length === 0) {
logger.error(`${ConfigNotFoundError.message}.`)
throw ConfigNotFoundError
}
return configGroups
}
{
"name": "lint-staged",
"version": "12.2.0",
"version": "12.2.1",
"description": "Lint files staged by git",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc