eslint-plugin-markdown
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -0,1 +1,8 @@ | ||
v1.0.0-beta.8 - April 8, 2018 | ||
* a1544c2 Chore: Add .npmrc to disable creating package-lock.json (#90) (Brandon Mills) | ||
* 47ad3f9 Chore: Replace global comment integration test with unit test (refs #81) (#85) (Brandon Mills) | ||
* e34acc6 Fix: Add unicode-bom to unsatisfiable rules (refs #75) (#84) (Brandon Mills) | ||
* 7c19f8b Fix: Support globals (fixes #79) (#81) (Anders D. Johnson) | ||
v1.0.0-beta.7 - July 2, 2017 | ||
@@ -2,0 +9,0 @@ |
@@ -14,3 +14,4 @@ /** | ||
var UNSATISFIABLE_RULES = [ | ||
"eol-last" // The Markdown parser strips trailing newlines in code fences | ||
"eol-last", // The Markdown parser strips trailing newlines in code fences | ||
"unicode-bom" // Code blocks will begin in the middle of Markdown files | ||
]; | ||
@@ -51,3 +52,3 @@ | ||
var commentEnd = "-->"; | ||
var prefix = "eslint"; | ||
var regex = /^(eslint\b|global\s)/; | ||
@@ -63,3 +64,3 @@ if ( | ||
if (html.trim().slice(0, prefix.length) !== prefix) { | ||
if (!regex.test(html.trim())) { | ||
return ""; | ||
@@ -66,0 +67,0 @@ } |
{ | ||
"name": "eslint-plugin-markdown", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "An ESLint plugin to lint JavaScript in Markdown code fences.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
13082
158