remark-lint-no-trailing-spaces
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -20,9 +20,2 @@ var visit = require('unist-util-visit'); | ||
}); | ||
} else if (/^\s/.test(currentLine)) { | ||
file.message('Remove leading whitespace', { | ||
position: { | ||
start: { line: lineIndex, column: 1 }, | ||
end: { line: lineIndex } | ||
} | ||
}); | ||
} | ||
@@ -29,0 +22,0 @@ } |
{ | ||
"name": "remark-lint-no-trailing-spaces", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"author": "Jonathan Verrecchia - @verekia", | ||
@@ -5,0 +5,0 @@ "repository": "verekia/remark-lint-no-trailing-spaces", |
@@ -1,2 +0,20 @@ | ||
# remark-lint-no-trailing-spaces | ||
A remark-lint external rule to warn about trailing whitespaces | ||
# `no-trailing-spaces` external rule for [remark-lint](https://github.com/wooorm/remark-lint) | ||
A remark-lint external rule to warn about any trailing whitespace. | ||
``` | ||
`·` represents ` `. | ||
<!-- Invalid (2 warnings) --> | ||
# Title·· | ||
·· | ||
Hello world! | ||
<!-- Valid --> | ||
# Title | ||
Hello world! | ||
``` |
21
54721
23