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

@dawnjs/dn-middleware-lint

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dawnjs/dn-middleware-lint - npm Package Compare versions

Comparing version 3.3.2 to 3.3.3

26

lib/index.js

@@ -68,6 +68,12 @@ "use strict";;

(0, utils_1.debug)("projectInfo", projectInfo);
return [4 /*yield*/, (0, core_1.eslintignore)(ctx.cwd)];
case 2:
_a.sent();
return [4 /*yield*/, (0, core_1.editorconfig)(ctx.cwd)];
case 3:
_a.sent();
// Async Remove unused .eslintrc files
// Async Remove unused .prettierrc files
return [4 /*yield*/, (0, core_1.rmRcFiles)({ console: ctx.console, cwd: ctx.cwd })];
case 2:
case 4:
// Async Remove unused .eslintrc files

@@ -78,9 +84,9 @@ // Async Remove unused .prettierrc files

return [4 /*yield*/, (0, core_1.readAndForceWriteRc)({ console: ctx.console, cwd: ctx.cwd, projectInfo: projectInfo })];
case 3:
case 5:
// Async overwrite .prettierrc.js file
_a.sent();
return [4 /*yield*/, (0, core_1.prepareDeps)(ctx, projectInfo)];
case 4:
case 6:
_a.sent();
if (!options.lintStaged) return [3 /*break*/, 6];
if (!options.lintStaged) return [3 /*break*/, 8];
lintStagedConfig = {

@@ -95,3 +101,3 @@ config: {

return [4 /*yield*/, (0, lint_staged_1.default)(lintStagedConfig)];
case 5:
case 7:
success = _a.sent();

@@ -102,9 +108,9 @@ if (!success) {

return [2 /*return*/, next()];
case 6:
if (!(!options.realtime && !options.noEmit)) return [3 /*break*/, 8];
case 8:
if (!(!options.realtime && !options.noEmit)) return [3 /*break*/, 10];
return [4 /*yield*/, (0, core_1.execLint)({ autoFix: options.autoFix, cache: options.cache, prettier: options.prettier, projectInfo: projectInfo }, ctx)];
case 7:
case 9:
_a.sent();
_a.label = 8;
case 8: return [2 /*return*/, next()];
_a.label = 10;
case 10: return [2 /*return*/, next()];
}

@@ -111,0 +117,0 @@ });

{
"name": "@dawnjs/dn-middleware-lint",
"version": "3.3.2",
"version": "3.3.3",
"description": "Dawn lint middleware",

@@ -10,4 +10,3 @@ "main": "./lib/index.js",

"build": "tsc && ts-add-module-exports",
"prepublishOnly": "npm run build",
"postinstall": "node ./lib/postinstall.js || exit 0"
"prepublishOnly": "npm run build"
},

@@ -50,3 +49,3 @@ "author": "Jeason",

},
"gitHead": "1d019034edd852f783a353f78d8fc8afd3180835"
"gitHead": "d569b0d4ab3c541b3309907fdd9447f56d856422"
}
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