remark-lint-no-empty-sections
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -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
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
6825
11
72