mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Deprecate MD006/ul-start-left in favor of MD007/ul-indent.
This commit is contained in:
parent
21b01b2a96
commit
d15324478c
9 changed files with 19 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD002": true,
|
||||
"MD006": true,
|
||||
"MD041": true,
|
||||
"MD043": {
|
||||
"headings": [
|
||||
|
|
4
test/bulleted_list_not_at_beginning_of_line.json
Normal file
4
test/bulleted_list_not_at_beginning_of_line.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD006": true
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD002": true
|
||||
"MD002": true,
|
||||
"MD006": true
|
||||
}
|
||||
|
|
4
test/list-indentation.json
Normal file
4
test/list-indentation.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD006": true
|
||||
}
|
4
test/lists-with-nesting.json
Normal file
4
test/lists-with-nesting.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD006": true
|
||||
}
|
|
@ -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 ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue