eslint-plugin-markdown-preferences 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/{chunk-Cl8Af3a2.js → chunk-CTAAG5j7.js} +3 -1
- package/lib/index.d.ts +13 -1
- package/lib/index.js +1620 -558
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -125,6 +125,7 @@ The rules with the following 💄 are included in the `standard` config.
|
|
|
125
125
|
| [markdown-preferences/definitions-last](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/definitions-last.html) | require link definitions and footnote definitions to be placed at the end of the document | 🔧 | |
|
|
126
126
|
| [markdown-preferences/emphasis-delimiters-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/emphasis-delimiters-style.html) | enforce a consistent delimiter style for emphasis and strong emphasis | 🔧 | 💄 |
|
|
127
127
|
| [markdown-preferences/hard-linebreak-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/hard-linebreak-style.html) | enforce consistent hard linebreak style. | 🔧 | ⭐💄 |
|
|
128
|
+
| [markdown-preferences/indent](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/indent.html) | enforce consistent indentation in Markdown files | 🔧 | 💄 |
|
|
128
129
|
| [markdown-preferences/level1-heading-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/level1-heading-style.html) | enforce consistent style for level 1 headings | 🔧 | 💄 |
|
|
129
130
|
| [markdown-preferences/level2-heading-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/level2-heading-style.html) | enforce consistent style for level 2 headings | 🔧 | 💄 |
|
|
130
131
|
| [markdown-preferences/link-bracket-newline](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-bracket-newline.html) | enforce linebreaks after opening and before closing link brackets | 🔧 | 💄 |
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (
|
|
3
|
+
var __export = (all) => {
|
|
4
|
+
let target = {};
|
|
4
5
|
for (var name in all) __defProp(target, name, {
|
|
5
6
|
get: all[name],
|
|
6
7
|
enumerable: true
|
|
7
8
|
});
|
|
9
|
+
return target;
|
|
8
10
|
};
|
|
9
11
|
|
|
10
12
|
//#endregion
|
package/lib/index.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ interface RuleOptions {
|
|
|
70
70
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/heading-casing.html
|
|
71
71
|
*/
|
|
72
72
|
'markdown-preferences/heading-casing'?: Linter.RuleEntry<MarkdownPreferencesHeadingCasing>;
|
|
73
|
+
/**
|
|
74
|
+
* enforce consistent indentation in Markdown files
|
|
75
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/indent.html
|
|
76
|
+
*/
|
|
77
|
+
'markdown-preferences/indent'?: Linter.RuleEntry<MarkdownPreferencesIndent>;
|
|
73
78
|
/**
|
|
74
79
|
* enforce consistent style for level 1 headings
|
|
75
80
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/level1-heading-style.html
|
|
@@ -286,6 +291,13 @@ type MarkdownPreferencesHeadingCasing = [] | [{
|
|
|
286
291
|
ignorePatterns?: string[];
|
|
287
292
|
minorWords?: string[];
|
|
288
293
|
}];
|
|
294
|
+
type MarkdownPreferencesIndent = [] | [{
|
|
295
|
+
listItems?: {
|
|
296
|
+
first?: ("ignore" | number);
|
|
297
|
+
other?: (("first" | "minimum") | number);
|
|
298
|
+
relativeTo?: ("markerStart" | "markerEnd" | "taskListMarkerStart" | "taskListMarkerEnd");
|
|
299
|
+
};
|
|
300
|
+
}];
|
|
289
301
|
type MarkdownPreferencesLevel1HeadingStyle = [] | [{
|
|
290
302
|
style?: ("atx" | "setext");
|
|
291
303
|
allowMultilineSetext?: boolean;
|
|
@@ -442,7 +454,7 @@ declare namespace meta_d_exports {
|
|
|
442
454
|
export { name, version };
|
|
443
455
|
}
|
|
444
456
|
declare const name: "eslint-plugin-markdown-preferences";
|
|
445
|
-
declare const version: "0.
|
|
457
|
+
declare const version: "0.24.0";
|
|
446
458
|
//#endregion
|
|
447
459
|
//#region src/index.d.ts
|
|
448
460
|
declare const configs: {
|