bs-eslint-message
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,3 +0,1 @@ | ||
// replace bs-fullscreen-message with this shit | ||
(function (socket) { | ||
@@ -13,3 +11,5 @@ | ||
socket.on('msg:eslint', results => { | ||
if (results[0].errorCount === 0) { | ||
const newErrors = results.filter(obj => obj.errorCount > 0) | ||
if (!newErrors.length) { | ||
removeMsg() | ||
@@ -19,3 +19,3 @@ return | ||
addStyles() | ||
addMessage({ title: 'ESLINT ERRORS', body: parseErrors(results) }) | ||
addMessage({ title: 'ESLINT ERRORS', body: parseErrors(newErrors) }) | ||
}) | ||
@@ -22,0 +22,0 @@ |
{ | ||
"name": "bs-eslint-message", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "BrowserSync plugin to display eslint errors (or any other message) within connected browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5454