@dawnjs/dn-middleware-lint
Advanced tools
Comparing version 3.3.2 to 3.3.3
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
1
38432
19
680