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

remark-lint-no-empty-sections

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint-no-empty-sections - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

4

dist/no-empty-section.js

@@ -13,3 +13,3 @@ 'use strict';

if (next && next.type === 'heading' && next.depth === node.depth) {
file.warn('Remove empty section: "' + label + '"', {
file.message('Remove empty section: "' + label + '"', {
start: node.position.end,

@@ -20,3 +20,3 @@ end: next.position.start

if (parent.children.length - 1 === index) {
file.warn('Remove empty section: "' + label + '"', {
file.message('Remove empty section: "' + label + '"', {
start: node.position.start,

@@ -23,0 +23,0 @@ end: node.position.end

@@ -11,3 +11,3 @@ const rule = require('unified-lint-rule');

if (next && next.type === 'heading' && next.depth === node.depth) {
file.warn(`Remove empty section: "${label}"`, {
file.message(`Remove empty section: "${label}"`, {
start: node.position.end,

@@ -18,3 +18,3 @@ end: next.position.start

if (parent.children.length - 1 === index) {
file.warn(`Remove empty section: "${label}"`, {
file.message(`Remove empty section: "${label}"`, {
start: node.position.start,

@@ -21,0 +21,0 @@ end: node.position.end

{
"name": "remark-lint-no-empty-sections",
"version": "3.0.0",
"version": "4.0.0",
"description": "Checks that all markdown titles have a content",

@@ -26,5 +26,5 @@ "author": "Victor Felder <victorfelder@gmail.com>",

"eslint-plugin-react": "^6.10.0",
"remark": "^9.0.0",
"remark": "^12.0.0",
"remark-cli": "^5.0.0",
"remark-lint": "^6.0.0",
"remark-lint": "^7.0.0",
"tape": "^4.6.3"

@@ -31,0 +31,0 @@ },

@@ -7,3 +7,2 @@ # remark-lint-no-empty-sections [![Build Status](https://travis-ci.org/vhf/remark-lint-no-empty-sections.svg?branch=master)](https://travis-ci.org/vhf/remark-lint-no-empty-sections)

## Examples

@@ -10,0 +9,0 @@

Sorry, the diff of this file is not supported yet

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