remark-lint-list-item-indent
Advanced tools
Comparing version 1.0.5 to 2.0.0
@@ -109,3 +109,3 @@ /** | ||
var rule = require('unified-lint-rule') | ||
var plural = require('plur') | ||
var plural = require('pluralize') | ||
var visit = require('unist-util-visit') | ||
@@ -150,2 +150,3 @@ var position = require('unist-util-position') | ||
var reason | ||
var abs | ||
@@ -165,2 +166,3 @@ marker = contents | ||
diff = style - marker.length | ||
abs = Math.abs(diff) | ||
@@ -171,5 +173,5 @@ reason = | ||
' ' + | ||
Math.abs(diff) + | ||
abs + | ||
' ' + | ||
plural('space', diff) | ||
plural('space', abs) | ||
@@ -176,0 +178,0 @@ file.message(reason, final) |
{ | ||
"name": "remark-lint-list-item-indent", | ||
"version": "1.0.5", | ||
"version": "2.0.0", | ||
"description": "remark-lint rule to warn when the spacing between a list item’s bullet and its content violates a given style", | ||
@@ -29,9 +29,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"plur": "^3.0.0", | ||
"pluralize": "^8.0.0", | ||
"unified-lint-rule": "^1.0.0", | ||
"unist-util-generated": "^1.1.0", | ||
"unist-util-position": "^3.0.0", | ||
"unist-util-visit": "^1.1.1" | ||
"unist-util-visit": "^2.0.0" | ||
}, | ||
"xo": false | ||
} |
@@ -36,3 +36,3 @@ <!--This file is generated--> | ||
| Preset | Setting | | ||
| ------ | ------- | | ||
| - | - | | ||
| [`remark-preset-lint-markdown-style-guide`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-preset-lint-markdown-style-guide) | `'mixed'` | | ||
@@ -39,0 +39,0 @@ | [`remark-preset-lint-recommended`](https://github.com/remarkjs/remark-lint/tree/master/packages/remark-preset-lint-recommended) | `'tab-size'` | |
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
10609
161
+ Addedpluralize@^8.0.0
+ Added@types/unist@2.0.11(transitive)
+ Addedpluralize@8.0.0(transitive)
+ Addedunist-util-is@4.1.0(transitive)
+ Addedunist-util-visit@2.0.3(transitive)
+ Addedunist-util-visit-parents@3.1.1(transitive)
- Removedplur@^3.0.0
- Removedirregular-plurals@2.0.0(transitive)
- Removedplur@3.1.1(transitive)
- Removedunist-util-is@3.0.0(transitive)
- Removedunist-util-visit@1.4.1(transitive)
- Removedunist-util-visit-parents@2.1.2(transitive)
Updatedunist-util-visit@^2.0.0