Comparing version 2.0.3 to 2.0.4
@@ -18,6 +18,8 @@ // LICENSE : MIT | ||
var results = engine.executeOnFiles(filePathList); | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
if (engine.isErrorResults(results)) { | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
} | ||
} | ||
lintFile(path.join(__dirname, "..", "..", "create-rules.md")); |
@@ -42,3 +42,6 @@ # Use as node modules | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
if (engine.isErrorResults(results)) { | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
} | ||
} | ||
@@ -45,0 +48,0 @@ ``` |
{ | ||
"name": "textlint", | ||
"description": "plugable text lint tool(support markdown).", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"homepage": "https://github.com/azu/textlint/", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -74,4 +74,6 @@ # textlint [![Build Status](https://travis-ci.org/azu/textlint.svg)](https://travis-ci.org/azu/textlint) | ||
console.log(results[0].messages);// => [{message:"lint message"}] | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
if (engine.isErrorResults(results)) { | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
} | ||
``` | ||
@@ -78,0 +80,0 @@ |
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
72752
1606
146