remark-lint-no-consecutive-blank-lines
Advanced tools
Comparing version 1.0.2 to 1.0.3
17
index.js
@@ -7,4 +7,5 @@ /** | ||
* @fileoverview | ||
* Warn for too many consecutive blank lines. Knows about the extra line | ||
* needed between a list and indented code, and two lists. | ||
* Warn for too many consecutive blank lines. | ||
* Knows about the extra line needed between a list and indented code, and two | ||
* lists. | ||
* | ||
@@ -17,3 +18,3 @@ * ## Fix | ||
* | ||
* See [Using remark to fix your markdown](https://github.com/remarkjs/remark-lint#using-remark-to-fix-your-markdown) | ||
* See [Using remark to fix your Markdown](https://github.com/remarkjs/remark-lint#using-remark-to-fix-your-markdown) | ||
* on how to automatically fix warnings for this rule. | ||
@@ -78,6 +79,6 @@ * | ||
if (head && !generated(head)) { | ||
/* Compare parent and first child. */ | ||
// Compare parent and first child. | ||
compare(position.start(node), position.start(head), 0) | ||
/* Compare between each child. */ | ||
// Compare between each child. | ||
children.forEach(visitChild) | ||
@@ -87,3 +88,3 @@ | ||
/* Compare parent and last child. */ | ||
// Compare parent and last child. | ||
if (tail !== head && !generated(tail)) { | ||
@@ -96,4 +97,4 @@ compare(position.end(node), position.end(tail), 1) | ||
/* Compare the difference between `start` and `end`, | ||
* and warn when that difference exceeds `max`. */ | ||
// Compare the difference between `start` and `end`, and warn when that | ||
// difference exceeds `max`. | ||
function compare(start, end, max) { | ||
@@ -100,0 +101,0 @@ var diff = end.line - start.line |
{ | ||
"name": "remark-lint-no-consecutive-blank-lines", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "remark-lint rule to warn for too many consecutive blank lines", | ||
@@ -15,5 +15,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/remarkjs/remark-lint/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -20,0 +20,0 @@ "files": [ |
@@ -5,5 +5,14 @@ <!--This file is generated--> | ||
Warn for too many consecutive blank lines. Knows about the extra line | ||
needed between a list and indented code, and two lists. | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Size][size-badge]][size] | ||
[![Sponsors][sponsors-badge]][collective] | ||
[![Backers][backers-badge]][collective] | ||
[![Chat][chat-badge]][chat] | ||
Warn for too many consecutive blank lines. | ||
Knows about the extra line needed between a list and indented code, and two | ||
lists. | ||
## Fix | ||
@@ -15,3 +24,3 @@ | ||
See [Using remark to fix your markdown](https://github.com/remarkjs/remark-lint#using-remark-to-fix-your-markdown) | ||
See [Using remark to fix your Markdown](https://github.com/remarkjs/remark-lint#using-remark-to-fix-your-markdown) | ||
on how to automatically fix warnings for this rule. | ||
@@ -94,2 +103,4 @@ | ||
[npm][]: | ||
```sh | ||
@@ -99,3 +110,3 @@ npm install remark-lint-no-consecutive-blank-lines | ||
## Usage | ||
## Use | ||
@@ -137,4 +148,54 @@ You probably want to use it on the CLI through a config file: | ||
## Contribute | ||
See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways | ||
to get started. | ||
See [`support.md`][support] for ways to get help. | ||
This project has a [Code of Conduct][coc]. | ||
By interacting with this repository, organisation, or community you agree to | ||
abide by its terms. | ||
## License | ||
[MIT](https://github.com/remarkjs/remark-lint/blob/master/LICENSE) © [Titus Wormer](http://wooorm.com) | ||
[MIT][license] © [Titus Wormer][author] | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark-lint/master.svg | ||
[build]: https://travis-ci.org/remarkjs/remark-lint | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-lint.svg | ||
[coverage]: https://codecov.io/github/remarkjs/remark-lint | ||
[downloads-badge]: https://img.shields.io/npm/dm/remark-lint-no-consecutive-blank-lines.svg | ||
[downloads]: https://www.npmjs.com/package/remark-lint-no-consecutive-blank-lines | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/remark-lint-no-consecutive-blank-lines.svg | ||
[size]: https://bundlephobia.com/result?p=remark-lint-no-consecutive-blank-lines | ||
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg | ||
[backers-badge]: https://opencollective.com/unified/backers/badge.svg | ||
[collective]: https://opencollective.com/unified | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[chat]: https://spectrum.chat/unified/remark | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[health]: https://github.com/remarkjs/.github | ||
[contributing]: https://github.com/remarkjs/.github/blob/master/contributing.md | ||
[support]: https://github.com/remarkjs/.github/blob/master/support.md | ||
[coc]: https://github.com/remarkjs/.github/blob/master/code-of-conduct.md | ||
[license]: https://github.com/remarkjs/remark-lint/blob/master/license | ||
[author]: https://wooorm.com |
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
7925
113
197