Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 5.2.0 to 5.3.0

3

lib/rules/blockquote-indentation.js

@@ -62,2 +62,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -83,3 +84,3 @@ /**

if (position.generated(node) || node.children.length === 0) {
if (generated(node) || node.children.length === 0) {
return;

@@ -86,0 +87,0 @@ }

@@ -78,2 +78,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -149,6 +150,3 @@ /* Expose. */

/* Exit early for items without checkbox. */
if (
node.checked !== Boolean(node.checked) ||
position.generated(node)
) {
if (node.checked !== Boolean(node.checked) || generated(node)) {
return;

@@ -155,0 +153,0 @@ }

@@ -36,2 +36,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -62,6 +63,3 @@ /* Expose. */

/* Exit early for items without checkbox. */
if (
node.checked !== Boolean(node.checked) ||
position.generated(node)
) {
if (node.checked !== Boolean(node.checked) || generated(node)) {
return;

@@ -68,0 +66,0 @@ }

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

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -158,3 +159,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return null;

@@ -161,0 +162,0 @@ }

@@ -27,2 +27,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -61,3 +62,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -64,0 +65,0 @@ }

@@ -27,2 +27,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -61,3 +62,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -64,0 +65,0 @@ }

@@ -63,2 +63,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -93,3 +94,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -96,0 +97,0 @@ }

@@ -73,2 +73,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -108,3 +109,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -111,0 +112,0 @@ }

@@ -65,2 +65,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -97,3 +98,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -100,0 +101,0 @@ }

@@ -33,2 +33,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -55,3 +56,3 @@ /* Expose. */

/* Ignore generated nodes. */
if (node.type === 'root' || position.generated(node)) {
if (node.type === 'root' || generated(node)) {
return;

@@ -58,0 +59,0 @@ }

@@ -52,3 +52,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -69,3 +69,3 @@ /* Expose. */

visit(ast, 'heading', function (node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -72,0 +72,0 @@ }

@@ -35,2 +35,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -55,3 +56,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -58,0 +59,0 @@ }

@@ -30,3 +30,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -51,3 +51,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -54,0 +54,0 @@ }

@@ -72,3 +72,3 @@ /**

var style = require('mdast-util-heading-style');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -96,3 +96,3 @@ /* Expose. */

visit(ast, 'heading', function (node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -99,0 +99,0 @@ }

@@ -71,2 +71,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -125,3 +126,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -128,0 +129,0 @@ }

@@ -34,2 +34,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var plural = require('plur');

@@ -61,3 +62,3 @@

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -64,0 +65,0 @@ }

@@ -29,2 +29,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var plural = require('plur');

@@ -58,3 +59,3 @@

if (position.generated(item)) {
if (generated(item)) {
return;

@@ -61,0 +62,0 @@ }

@@ -75,2 +75,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var plural = require('plur');

@@ -114,3 +115,3 @@

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -117,0 +118,0 @@ }

@@ -62,2 +62,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -85,3 +86,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -88,0 +89,0 @@ }

@@ -33,3 +33,3 @@ /**

var toString = require('mdast-util-to-string');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -52,3 +52,3 @@ /* Expose. */

visit(ast, 'heading', function (node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -55,0 +55,0 @@ }

@@ -64,2 +64,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -96,3 +97,3 @@ /* Expose. */

if (!applicable || position.generated(node)) {
if (!applicable || generated(node)) {
return;

@@ -152,3 +153,3 @@ }

/* Nothing to whitelist when generated. */
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -155,0 +156,0 @@ }

@@ -32,2 +32,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -63,3 +64,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -66,0 +67,0 @@ }

@@ -32,2 +32,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -53,3 +54,3 @@ /* Expose. */

if (position.generated(node) || !indent || indent.length === 0) {
if (generated(node) || !indent || indent.length === 0) {
return;

@@ -56,0 +57,0 @@ }

@@ -44,2 +44,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var plural = require('plur');

@@ -67,7 +68,7 @@

if (position.generated(node)) {
if (generated(node)) {
return;
}
if (head && !position.generated(head)) {
if (head && !generated(head)) {
/* Compare parent and first child. */

@@ -81,7 +82,3 @@ compare(position.start(node), position.start(head), 0);

if (
!prev ||
position.generated(prev) ||
position.generated(child)
) {
if (!prev || generated(prev) || generated(child)) {
return;

@@ -101,3 +98,3 @@ }

/* Compare parent and last child. */
if (tail !== head && !position.generated(tail)) {
if (tail !== head && !generated(tail)) {
compare(position.end(node), position.end(tail), 1);

@@ -104,0 +101,0 @@ }

@@ -28,2 +28,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -59,3 +60,3 @@

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -62,0 +63,0 @@ }

@@ -46,2 +46,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -69,3 +70,3 @@ var toString = require('mdast-util-to-string');

if (!position.generated(node) && duplicate && duplicate.type === 'heading') {
if (!generated(node) && duplicate && duplicate.type === 'heading') {
pos = position.start(duplicate);

@@ -72,0 +73,0 @@ file.message(

@@ -35,2 +35,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -58,3 +59,3 @@ var toString = require('mdast-util-to-string');

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -61,0 +62,0 @@ }

@@ -31,3 +31,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -51,3 +51,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -54,0 +54,0 @@ }

@@ -58,2 +58,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -90,3 +91,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -93,0 +94,0 @@ }

@@ -51,2 +51,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -77,3 +78,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -80,0 +81,0 @@ }

@@ -48,3 +48,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');
var toString = require('mdast-util-to-string');

@@ -68,3 +68,3 @@

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -71,0 +71,0 @@ }

@@ -31,3 +31,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -47,3 +47,3 @@ /* Expose. */

visit(ast, 'html', function (node) {
if (!position.generated(node) && !/^\s*<!--/.test(node.value)) {
if (!generated(node) && !/^\s*<!--/.test(node.value)) {
file.message('Do not use HTML in markdown', node);

@@ -50,0 +50,0 @@ }

@@ -31,3 +31,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');
var toString = require('mdast-util-to-string');

@@ -50,3 +50,3 @@

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -53,0 +53,0 @@ }

@@ -31,2 +31,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -57,3 +58,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -60,0 +61,0 @@ }

@@ -60,2 +60,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -78,3 +79,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -81,0 +82,0 @@ }

@@ -33,2 +33,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -53,3 +54,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -56,0 +57,0 @@ }

@@ -29,3 +29,3 @@ /**

/* Dependencies. */
var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -54,3 +54,3 @@

function find(node) {
if (!position.generated(node)) {
if (!generated(node)) {
identifiers.push(node.identifier.toLowerCase());

@@ -57,0 +57,0 @@ }

@@ -41,3 +41,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -76,3 +76,3 @@ /* Expose. */

if (!language || position.generated(node)) {
if (!language || generated(node)) {
return;

@@ -79,0 +79,0 @@ }

@@ -30,3 +30,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -44,3 +44,3 @@ /* Expose. */

visit(ast, 'imageReference', function (node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -47,0 +47,0 @@ }

@@ -30,3 +30,3 @@ /**

var visit = require('unist-util-visit');
var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -44,3 +44,3 @@ /* Expose. */

visit(ast, 'linkReference', function (node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -47,0 +47,0 @@ }

@@ -36,2 +36,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -51,3 +52,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -54,0 +55,0 @@ }

@@ -27,3 +27,3 @@ /**

/* Dependencies. */
var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -58,3 +58,3 @@

function mark(node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -72,3 +72,3 @@ }

function find(node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -75,0 +75,0 @@ }

@@ -27,3 +27,3 @@ /**

/* Dependencies. */
var position = require('unist-util-position');
var generated = require('unist-util-generated');
var visit = require('unist-util-visit');

@@ -65,3 +65,3 @@

function find(node) {
if (position.generated(node)) {
if (generated(node)) {
return;

@@ -84,3 +84,3 @@ }

if (position.generated(node) || !info) {
if (generated(node) || !info) {
return;

@@ -87,0 +87,0 @@ }

@@ -56,2 +56,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -103,3 +104,3 @@ /* Expose. */

if (position.generated(item)) {
if (generated(item)) {
return;

@@ -106,0 +107,0 @@ }

@@ -82,2 +82,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -143,3 +144,3 @@ /* Expose. */

/* Ignore generated nodes. */
if (position.generated(item)) {
if (generated(item)) {
return;

@@ -146,0 +147,0 @@ }

@@ -52,2 +52,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -84,3 +85,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -87,0 +88,0 @@ }

@@ -50,2 +50,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -80,3 +81,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -83,0 +84,0 @@ }

@@ -66,2 +66,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -111,3 +112,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -114,0 +115,0 @@ }

@@ -32,2 +32,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -54,3 +55,3 @@ /* Expose. */

if (position.generated(node)) {
if (generated(node)) {
return;

@@ -57,0 +58,0 @@ }

@@ -34,2 +34,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -60,3 +61,3 @@ /* Expose. */

if (position.generated(row)) {
if (generated(row)) {
return;

@@ -63,0 +64,0 @@ }

@@ -50,2 +50,3 @@ /**

var position = require('unist-util-position');
var generated = require('unist-util-generated');

@@ -98,3 +99,3 @@ /* Expose. */

if (position.generated(item)) {
if (generated(item)) {
return;

@@ -101,0 +102,0 @@ }

{
"name": "remark-lint",
"version": "5.2.0",
"version": "5.3.0",
"description": "Lint markdown with remark",

@@ -25,2 +25,3 @@ "license": "MIT",

"YJ Yang <chcokr@gmail.com>",
"Сковорода Никита Андреевич <chalkerx@gmail.com>",
"Burak Yiğit Kaya <ben@byk.im>"

@@ -40,8 +41,9 @@ ],

"trough": "^1.0.0",
"unist-util-position": "^2.0.1",
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^1.0.0",
"vfile-location": "^2.0.0",
"vfile-sort": "^1.0.0",
"vfile-sort": "^2.0.0",
"wrapped": "^1.0.1"
}
}
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