remark-lint
Advanced tools
Comparing version 3.2.1 to 4.0.0
@@ -5,2 +5,10 @@ <!--remark setext--> | ||
4.0.0 / 2016-06-06 | ||
================== | ||
* Add support for setting allowed file-name characters ([`fd908a4`](https://github.com/wooorm/remark-lint/commit/fd908a4)) | ||
* Fix parameters when using reset ([`b8f52a9`](https://github.com/wooorm/remark-lint/commit/b8f52a9)) | ||
* Update `list-item-spacing` message ([`d562d6e`](https://github.com/wooorm/remark-lint/commit/d562d6e)) | ||
* Fix checkbox lists starting with links ([`019ff36`](https://github.com/wooorm/remark-lint/commit/019ff36)) | ||
3.2.1 / 2016-04-26 | ||
@@ -126,3 +134,3 @@ ================== | ||
* Fix failure on block-quotes without children ([`a9aaff7`](https://github.com/wooorm/remark-lint/commit/a9aaff7)) | ||
* Fix block-quotes without children ([`a9aaff7`](https://github.com/wooorm/remark-lint/commit/a9aaff7)) | ||
* Update mdast dev-dependency ([`34df79c`](https://github.com/wooorm/remark-lint/commit/34df79c)) | ||
@@ -129,0 +137,0 @@ * Add vfile as a dev-dependency ([`84d1ce3`](https://github.com/wooorm/remark-lint/commit/84d1ce3)) |
@@ -124,3 +124,3 @@ /** | ||
return options === false ? null : plugin; | ||
return plugin; | ||
} | ||
@@ -271,3 +271,9 @@ | ||
if (!(setting === null || setting === undefined)) { | ||
/* Pass turned on rules `undefined`. */ | ||
if (reset && setting === true) { | ||
setting = undefined; | ||
} | ||
if (setting === false) { | ||
setting = undefined; | ||
disable.push(id); | ||
@@ -274,0 +280,0 @@ } else { |
@@ -71,4 +71,10 @@ /** | ||
if (index === 0) { | ||
/* | ||
* If there’s a checkbox before the content, | ||
* look backwards to find the start of that | ||
* checkbox. | ||
*/ | ||
if (Boolean(node.checked) === node.checked) { | ||
char = begin.offset; | ||
char = begin.offset - 1; | ||
@@ -75,0 +81,0 @@ while (contents.charAt(char) !== '[') { |
@@ -106,6 +106,13 @@ /** | ||
if (isTight !== isTightList) { | ||
file.warn('List item should be ' + type + ', isn’t', { | ||
'start': end(item), | ||
'end': start(next) | ||
}); | ||
if (type === 'loose') { | ||
file.warn('Missing new line after list item', { | ||
'start': end(item), | ||
'end': start(next) | ||
}); | ||
} else { | ||
file.warn('Extraneous new line after list item', { | ||
'start': end(item), | ||
'end': start(next) | ||
}); | ||
} | ||
} | ||
@@ -112,0 +119,0 @@ }); |
@@ -9,2 +9,10 @@ /** | ||
* than alpha-numericals, dashes, and dots (full-stops). | ||
* | ||
* Options: `RegExp` or `string`, default: `'\\.a-zA-Z0-9-'`. | ||
* | ||
* If a string is given, it will be wrapped in | ||
* `new RegExp('[^' + preferred + ']')`. | ||
* | ||
* Any match by the wrapped or given expressions triggers a | ||
* warning. | ||
* @example | ||
@@ -29,4 +37,11 @@ * Invalid: plug_ins.md, plug ins.md. | ||
function noFileNameIrregularCharacters(ast, file, preferred, done) { | ||
var match = file.filename && file.filename.match(/[^.a-zA-Z0-9-]/); | ||
var expression = preferred || /[^\\.a-zA-Z0-9-]/; | ||
var match; | ||
if (typeof expression === 'string') { | ||
expression = new RegExp('[^' + expression + ']'); | ||
} | ||
match = file.filename && file.filename.match(expression); | ||
if (match) { | ||
@@ -33,0 +48,0 @@ file.warn('Do not use `' + match[0] + '` in a file name'); |
{ | ||
"name": "remark-lint", | ||
"version": "3.2.1", | ||
"version": "4.0.0", | ||
"description": "Lint markdown with remark", | ||
@@ -43,4 +43,4 @@ "license": "MIT", | ||
"istanbul": "^0.4.0", | ||
"jscs": "^2.0.0", | ||
"jscs-jsdoc": "^1.0.0", | ||
"jscs": "^3.0.0", | ||
"jscs-jsdoc": "^2.0.0", | ||
"remark": "^4.0.0", | ||
@@ -47,0 +47,0 @@ "remark-comment-config": "^3.0.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
144377
4697