Deprecate MD006/ul-start-left in favor of MD007/ul-indent.

This commit is contained in:
David Anson 2020-01-13 19:19:49 -08:00
parent 21b01b2a96
commit d15324478c
9 changed files with 19 additions and 6 deletions

View file

@ -52,7 +52,7 @@ playground for learning and exploring.
* **[MD003](doc/Rules.md#md003)** *heading-style/header-style* - Heading style
* **[MD004](doc/Rules.md#md004)** *ul-style* - Unordered list style
* **[MD005](doc/Rules.md#md005)** *list-indent* - Inconsistent indentation for list items at the same level
* **[MD006](doc/Rules.md#md006)** *ul-start-left* - Consider starting bulleted lists at the beginning of the line
* ~~**[MD006](doc/Rules.md#md006)** *ul-start-left* - Consider starting bulleted lists at the beginning of the line~~
* **[MD007](doc/Rules.md#md007)** *ul-indent* - Unordered list indentation
* **[MD009](doc/Rules.md#md009)** *no-trailing-spaces* - Trailing spaces
* **[MD010](doc/Rules.md#md010)** *no-hard-tabs* - Hard tabs

View file

@ -222,7 +222,7 @@ the same ending column:
<a name="md006"></a>
## MD006 - Consider starting bulleted lists at the beginning of the line
## ~~MD006 - Consider starting bulleted lists at the beginning of the line~~
Tags: bullet, ul, indentation

View file

@ -10,7 +10,7 @@ const rules = require("./rules");
const helpers = require("../helpers");
const cache = require("./cache");
const deprecatedRuleNames = [ "MD002" ];
const deprecatedRuleNames = [ "MD002", "MD006" ];
// Validates the list of rules for structure and reuse
function validateRuleList(ruleList) {

View file

@ -1,6 +1,7 @@
{
"default": true,
"MD002": true,
"MD006": true,
"MD041": true,
"MD043": {
"headings": [

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD006": true
}

View file

@ -1,4 +1,5 @@
{
"default": true,
"MD002": true
"MD002": true,
"MD006": true
}

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD006": true
}

View file

@ -0,0 +1,4 @@
{
"default": true,
"MD006": true
}

View file

@ -25,7 +25,7 @@ const configSchema = require("../schema/markdownlint-config-schema.json");
const homepage = packageJson.homepage;
const version = packageJson.version;
const deprecatedRuleNames = [ "MD002" ];
const deprecatedRuleNames = [ "MD002", "MD006" ];
function createTestForFile(file) {
const markdownlintPromise = promisify(markdownlint);
@ -1104,7 +1104,6 @@ tape("styleAll", (test) => {
"MD003": [ 5, 31 ],
"MD004": [ 8 ],
"MD005": [ 12 ],
"MD006": [ 8 ],
"MD007": [ 8, 11 ],
"MD009": [ 14 ],
"MD010": [ 14 ],