Socket
Socket
Sign inDemoInstall

remark-lint

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

119

history.md

@@ -5,6 +5,11 @@ <!--remark setext-->

2.2.1 / 2016-01-15
==================
* Fix `list-item-indent` for non-incremented lists ([`e708a1c`](https://github.com/wooorm/remark-lint/commit/e708a1c))
2.2.0 / 2016-01-13
==================
* Add support for global externals when running globally ([589b4d7](https://github.com/wooorm/remark-lint/commit/589b4d7))
* Add support for global externals when running globally ([`589b4d7`](https://github.com/wooorm/remark-lint/commit/589b4d7))

@@ -14,10 +19,10 @@ 2.1.0 / 2016-01-09

* Update `readme.md` to reflect `screenshot.png` ([b2c4637](https://github.com/wooorm/remark-lint/commit/b2c4637))
* Rename `screen-shot.png` to `screenshot.png` ([9c48497](https://github.com/wooorm/remark-lint/commit/9c48497))
* Update `screen-shot.png` ([cf8ede7](https://github.com/wooorm/remark-lint/commit/cf8ede7))
* Add `no-undefined-references` rule ([8f6e055](https://github.com/wooorm/remark-lint/commit/8f6e055))
* Fix typo ([2c628f2](https://github.com/wooorm/remark-lint/commit/2c628f2))
* Add `no-unused-definitions` rule ([bde77ab](https://github.com/wooorm/remark-lint/commit/bde77ab))
* Update browserify ([43042ea](https://github.com/wooorm/remark-lint/commit/43042ea))
* Rename `sentence-newline` external rule to remark ([7ff9b74](https://github.com/wooorm/remark-lint/commit/7ff9b74))
* Update `readme.md` to reflect `screenshot.png` ([`b2c4637`](https://github.com/wooorm/remark-lint/commit/b2c4637))
* Rename `screen-shot.png` to `screenshot.png` ([`9c48497`](https://github.com/wooorm/remark-lint/commit/9c48497))
* Update `screen-shot.png` ([`cf8ede7`](https://github.com/wooorm/remark-lint/commit/cf8ede7))
* Add `no-undefined-references` rule ([`8f6e055`](https://github.com/wooorm/remark-lint/commit/8f6e055))
* Fix typo ([`2c628f2`](https://github.com/wooorm/remark-lint/commit/2c628f2))
* Add `no-unused-definitions` rule ([`bde77ab`](https://github.com/wooorm/remark-lint/commit/bde77ab))
* Update browserify ([`43042ea`](https://github.com/wooorm/remark-lint/commit/43042ea))
* Rename `sentence-newline` external rule to remark ([`7ff9b74`](https://github.com/wooorm/remark-lint/commit/7ff9b74))

@@ -27,4 +32,4 @@ 2.0.3 / 2016-01-06

* Fix silent warnings for invalid options ([aada8e8](https://github.com/wooorm/remark-lint/commit/aada8e8))
* Add list of external rules to `readme.md` ([298b33a](https://github.com/wooorm/remark-lint/commit/298b33a))
* Fix silent warnings for invalid options ([`aada8e8`](https://github.com/wooorm/remark-lint/commit/aada8e8))
* Add list of external rules to `readme.md` ([`298b33a`](https://github.com/wooorm/remark-lint/commit/298b33a))

@@ -34,3 +39,3 @@ 2.0.2 / 2015-12-27

* Fix hard-break-spaces in indented blocks ([a427c59](https://github.com/wooorm/remark-lint/commit/a427c59))
* Fix hard-break-spaces in indented blocks ([`a427c59`](https://github.com/wooorm/remark-lint/commit/a427c59))

@@ -40,6 +45,6 @@ 2.0.1 / 2015-12-26

* Remove distribution files from source ([e012e19](https://github.com/wooorm/remark-lint/commit/e012e19))
* Remove support for bower ([690e38b](https://github.com/wooorm/remark-lint/commit/690e38b))
* Refactor npm test target ([de65cd7](https://github.com/wooorm/remark-lint/commit/de65cd7))
* Replace internal dependency of mdast > remark ([26e07c9](https://github.com/wooorm/remark-lint/commit/26e07c9))
* Remove distribution files from source ([`e012e19`](https://github.com/wooorm/remark-lint/commit/e012e19))
* Remove support for bower ([`690e38b`](https://github.com/wooorm/remark-lint/commit/690e38b))
* Refactor npm test target ([`de65cd7`](https://github.com/wooorm/remark-lint/commit/de65cd7))
* Replace internal dependency of mdast > remark ([`26e07c9`](https://github.com/wooorm/remark-lint/commit/26e07c9))

@@ -49,11 +54,11 @@ 2.0.0 / 2015-12-24

* Add temporary warning to `readme.md` ([795877f](https://github.com/wooorm/remark-lint/commit/795877f))
* Rebuild distribution files ([8b88d8a](https://github.com/wooorm/remark-lint/commit/8b88d8a))
* Update fixtures for changes in remark ([237c12c](https://github.com/wooorm/remark-lint/commit/237c12c))
* Update `logo.svg` ([e027168](https://github.com/wooorm/remark-lint/commit/e027168))
* Rename `mdast-github` > `remark-github` ([811ce91](https://github.com/wooorm/remark-lint/commit/811ce91))
* Remove superfluous warnings after changes in mdast ([63cdcab](https://github.com/wooorm/remark-lint/commit/63cdcab))
* Update dependencies for changes in mdast ([4537271](https://github.com/wooorm/remark-lint/commit/4537271))
* Add list of related tools to `readme.md` ([50f350b](https://github.com/wooorm/remark-lint/commit/50f350b))
* Refactor API docs ([ad6df51](https://github.com/wooorm/remark-lint/commit/ad6df51))
* Add temporary warning to `readme.md` ([`795877f`](https://github.com/wooorm/remark-lint/commit/795877f))
* Rebuild distribution files ([`8b88d8a`](https://github.com/wooorm/remark-lint/commit/8b88d8a))
* Update fixtures for changes in remark ([`237c12c`](https://github.com/wooorm/remark-lint/commit/237c12c))
* Update `logo.svg` ([`e027168`](https://github.com/wooorm/remark-lint/commit/e027168))
* Rename `mdast-github` > `remark-github` ([`811ce91`](https://github.com/wooorm/remark-lint/commit/811ce91))
* Remove superfluous warnings after changes in mdast ([`63cdcab`](https://github.com/wooorm/remark-lint/commit/63cdcab))
* Update dependencies for changes in mdast ([`4537271`](https://github.com/wooorm/remark-lint/commit/4537271))
* Add list of related tools to `readme.md` ([`50f350b`](https://github.com/wooorm/remark-lint/commit/50f350b))
* Refactor API docs ([`ad6df51`](https://github.com/wooorm/remark-lint/commit/ad6df51))

@@ -63,3 +68,3 @@ 1.1.1 / 2015-09-12

* Add support for camel-case properties ([35c4066](https://github.com/wooorm/remark-lint/commit/35c4066))
* Add support for camel-case properties ([`35c4066`](https://github.com/wooorm/remark-lint/commit/35c4066))

@@ -69,4 +74,4 @@ 1.1.0 / 2015-08-31

* Add en- and disabling multiple rules in one comment ([29976d0](https://github.com/wooorm/remark-lint/commit/29976d0))
* Replace `vfile` patching of data with vfile-namespaces ([c1136a1](https://github.com/wooorm/remark-lint/commit/c1136a1))
* Add en- and disabling multiple rules in one comment ([`29976d0`](https://github.com/wooorm/remark-lint/commit/29976d0))
* Replace `vfile` patching of data with vfile-namespaces ([`c1136a1`](https://github.com/wooorm/remark-lint/commit/c1136a1))

@@ -76,3 +81,3 @@ 1.0.0 / 2015-08-17

* Update dependencies ([4936d35](https://github.com/wooorm/remark-lint/commit/4936d35))
* Update dependencies ([`4936d35`](https://github.com/wooorm/remark-lint/commit/4936d35))

@@ -82,3 +87,3 @@ 0.4.5 / 2015-08-08

* Fix typo in definition-case warning ([490ac16](https://github.com/wooorm/remark-lint/commit/490ac16))
* Fix typo in definition-case warning ([`490ac16`](https://github.com/wooorm/remark-lint/commit/490ac16))

@@ -88,4 +93,4 @@ 0.4.4 / 2015-08-05

* Remove maximum-line-length warnings on definitions ([1119ca8](https://github.com/wooorm/remark-lint/commit/1119ca8))
* Add `linter-markdown` to `readme.md` ([7de8847](https://github.com/wooorm/remark-lint/commit/7de8847))
* Remove maximum-line-length warnings on definitions ([`1119ca8`](https://github.com/wooorm/remark-lint/commit/1119ca8))
* Add `linter-markdown` to `readme.md` ([`7de8847`](https://github.com/wooorm/remark-lint/commit/7de8847))

@@ -95,5 +100,5 @@ 0.4.3 / 2015-08-04

* Fix failure on 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))
* Add vfile as a dev-dependency ([84d1ce3](https://github.com/wooorm/remark-lint/commit/84d1ce3))
* Fix failure on 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))
* Add vfile as a dev-dependency ([`84d1ce3`](https://github.com/wooorm/remark-lint/commit/84d1ce3))

@@ -103,3 +108,3 @@ 0.4.2 / 2015-07-12

* Remove peer-dependencies ([8d70fcf](https://github.com/wooorm/remark-lint/commit/8d70fcf))
* Remove peer-dependencies ([`8d70fcf`](https://github.com/wooorm/remark-lint/commit/8d70fcf))

@@ -109,4 +114,4 @@ 0.4.1 / 2015-07-05

* Remove component support ([58d7e6b](https://github.com/wooorm/remark-lint/commit/58d7e6b))
* Refactor to externalise `lib/utilities/` ([eb78529](https://github.com/wooorm/remark-lint/commit/eb78529))
* Remove component support ([`58d7e6b`](https://github.com/wooorm/remark-lint/commit/58d7e6b))
* Refactor to externalise `lib/utilities/` ([`eb78529`](https://github.com/wooorm/remark-lint/commit/eb78529))

@@ -116,4 +121,4 @@ 0.4.0 / 2015-06-29

* Add gap support ([136e760](https://github.com/wooorm/remark-lint/commit/136e760))
* Update mdast ([2d122e4](https://github.com/wooorm/remark-lint/commit/2d122e4))
* Add gap support ([`136e760`](https://github.com/wooorm/remark-lint/commit/136e760))
* Update mdast ([`2d122e4`](https://github.com/wooorm/remark-lint/commit/2d122e4))

@@ -123,9 +128,9 @@ 0.3.0 / 2015-06-20

* Add checkbox-content-indent rule ([7b55519](https://github.com/wooorm/remark-lint/commit/7b55519))
* Fix dot-files from being read as fixtures ([ecbec2c](https://github.com/wooorm/remark-lint/commit/ecbec2c))
* Add checkbox-character-style rule ([7ed4579](https://github.com/wooorm/remark-lint/commit/7ed4579))
* Fix tests for invalid position given my mdast-range ([55d1128](https://github.com/wooorm/remark-lint/commit/55d1128))
* Add missing jsdoc comment ([63b83b9](https://github.com/wooorm/remark-lint/commit/63b83b9))
* Update eslint ([a3b0829](https://github.com/wooorm/remark-lint/commit/a3b0829))
* Update mdast, mdast-yaml-config ([52bac04](https://github.com/wooorm/remark-lint/commit/52bac04))
* Add checkbox-content-indent rule ([`7b55519`](https://github.com/wooorm/remark-lint/commit/7b55519))
* Fix dot-files from being read as fixtures ([`ecbec2c`](https://github.com/wooorm/remark-lint/commit/ecbec2c))
* Add checkbox-character-style rule ([`7ed4579`](https://github.com/wooorm/remark-lint/commit/7ed4579))
* Fix tests for invalid position given my mdast-range ([`55d1128`](https://github.com/wooorm/remark-lint/commit/55d1128))
* Add missing jsdoc comment ([`63b83b9`](https://github.com/wooorm/remark-lint/commit/63b83b9))
* Update eslint ([`a3b0829`](https://github.com/wooorm/remark-lint/commit/a3b0829))
* Update mdast, mdast-yaml-config ([`52bac04`](https://github.com/wooorm/remark-lint/commit/52bac04))

@@ -135,14 +140,14 @@ 0.2.0 / 2015-06-13

* Remove mdast-usage, add mdast-yaml-config as dependencies ([053674f](https://github.com/wooorm/remark-lint/commit/053674f))
* Add images to blacklist for maximum-line-length ([ba6d270](https://github.com/wooorm/remark-lint/commit/ba6d270))
* Refactor to use rawgit references to images in `readme.md` ([3f6344c](https://github.com/wooorm/remark-lint/commit/3f6344c))
* Add support for external rules ([5162a09](https://github.com/wooorm/remark-lint/commit/5162a09))
* Refactor additional, fileless, rules support ([6d2ba65](https://github.com/wooorm/remark-lint/commit/6d2ba65))
* Adds support for automatic doc generation for file-less rules ([29965a3](https://github.com/wooorm/remark-lint/commit/29965a3))
* Add `reset` docs to rule generation script ([77b8bfd](https://github.com/wooorm/remark-lint/commit/77b8bfd))
* Adds `reset` rule to docs ([90a5f8a](https://github.com/wooorm/remark-lint/commit/90a5f8a))
* Update wording re rules in `readme.md` ([00d9ba4](https://github.com/wooorm/remark-lint/commit/00d9ba4))
* Update rule count in `readme.md` ([f937cf4](https://github.com/wooorm/remark-lint/commit/f937cf4))
* Remove mdast-usage, add mdast-yaml-config as dependencies ([`053674f`](https://github.com/wooorm/remark-lint/commit/053674f))
* Add images to blacklist for maximum-line-length ([`ba6d270`](https://github.com/wooorm/remark-lint/commit/ba6d270))
* Refactor to use rawgit references to images in `readme.md` ([`3f6344c`](https://github.com/wooorm/remark-lint/commit/3f6344c))
* Add support for external rules ([`5162a09`](https://github.com/wooorm/remark-lint/commit/5162a09))
* Refactor additional, fileless, rules support ([`6d2ba65`](https://github.com/wooorm/remark-lint/commit/6d2ba65))
* Adds support for automatic doc generation for file-less rules ([`29965a3`](https://github.com/wooorm/remark-lint/commit/29965a3))
* Add `reset` docs to rule generation script ([`77b8bfd`](https://github.com/wooorm/remark-lint/commit/77b8bfd))
* Adds `reset` rule to docs ([`90a5f8a`](https://github.com/wooorm/remark-lint/commit/90a5f8a))
* Update wording re rules in `readme.md` ([`00d9ba4`](https://github.com/wooorm/remark-lint/commit/00d9ba4))
* Update rule count in `readme.md` ([`f937cf4`](https://github.com/wooorm/remark-lint/commit/f937cf4))
0.1.0 / 2015-06-11
==================

@@ -15,2 +15,8 @@ /**

/*
* Constants.
*/
var SOURCE = 'remark-lint';
/*
* Dependencies.

@@ -104,2 +110,3 @@ */

messages[scope.index].ruleId = id;
messages[scope.index].source = SOURCE;

@@ -106,0 +113,0 @@ scope.index++;

@@ -96,4 +96,2 @@ /**

var items = node.children;
var isOrdered = node.ordered;
var offset = node.start || 1;

@@ -104,8 +102,8 @@ if (position.generated(node)) {

items.forEach(function (item, index) {
items.forEach(function (item) {
var head = item.children[0];
var bulletSize = isOrdered ? String(offset + index).length + 1 : 1;
var tab = Math.ceil(bulletSize / 4) * 4;
var initial = start(item).offset;
var final = start(head).offset;
var bulletSize;
var tab;
var marker;

@@ -124,2 +122,5 @@ var shouldBe;

bulletSize = marker.trimRight().length;
tab = Math.ceil(bulletSize / 4) * 4;
if (preferred === 'tab-size') {

@@ -126,0 +127,0 @@ shouldBe = tab;

{
"name": "remark-lint",
"version": "2.2.0",
"version": "2.2.1",
"description": "Lint markdown with remark",

@@ -40,3 +40,3 @@ "license": "MIT",

"remark-comment-config": "^2.0.0",
"remark-github": "^2.0.0",
"remark-github": "^3.0.0",
"remark-toc": "^2.0.0",

@@ -43,0 +43,0 @@ "remark-validate-links": "^2.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc