remark-lint-no-consecutive-blank-lines
Advanced tools
Comparing version 2.0.1 to 3.0.0
19
index.js
@@ -26,11 +26,2 @@ /** | ||
* | ||
* @example {"name": "ok-for-code.md"} | ||
* | ||
* Paragraph. | ||
* | ||
* * List | ||
* ␊ | ||
* ␊ | ||
* bravo(); | ||
* | ||
* @example {"name": "empty-document.md"} | ||
@@ -117,15 +108,7 @@ * | ||
var previous = all[index - 1] | ||
var max = 2 | ||
if (previous && !generated(previous) && !generated(child)) { | ||
if ( | ||
(previous.type === 'list' && child.type === 'list') || | ||
(child.type === 'code' && previous.type === 'list' && !child.lang) | ||
) { | ||
max++ | ||
} | ||
compare(position.end(previous), position.start(child), max) | ||
compare(position.end(previous), position.start(child), 2) | ||
} | ||
} | ||
} |
{ | ||
"name": "remark-lint-no-consecutive-blank-lines", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "remark-lint rule to warn for too many consecutive blank lines", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -52,21 +52,2 @@ <!--This file is generated--> | ||
##### `ok-for-code.md` | ||
###### In | ||
Note: `␊` represents a line feed. | ||
```markdown | ||
Paragraph. | ||
* List | ||
␊ | ||
␊ | ||
bravo(); | ||
``` | ||
###### Out | ||
No messages. | ||
##### `empty-document.md` | ||
@@ -181,5 +162,5 @@ | ||
[chat-badge]: https://img.shields.io/badge/chat-spectrum.svg | ||
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg | ||
[chat]: https://spectrum.chat/unified/remark | ||
[chat]: https://github.com/remarkjs/remark/discussions | ||
@@ -186,0 +167,0 @@ [npm]: https://docs.npmjs.com/cli/install |
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
7562
97
178