eslint-plugin-markdown-preferences 0.22.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 +3 -0
- package/lib/{chunk-Cl8Af3a2.js → chunk-CTAAG5j7.js} +3 -1
- package/lib/index.d.ts +30 -1
- package/lib/index.js +1997 -655
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -125,11 +125,14 @@ 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 | 🔧 | 💄 |
|
|
131
132
|
| [markdown-preferences/link-bracket-spacing](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-bracket-spacing.html) | enforce consistent spacing inside link brackets | 🔧 | 💄 |
|
|
132
133
|
| [markdown-preferences/link-destination-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-destination-style.html) | enforce a consistent style for link destinations | 🔧 | 💄 |
|
|
134
|
+
| [markdown-preferences/link-paren-newline](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-newline.html) | enforce linebreaks after opening and before closing link parentheses | 🔧 | 💄 |
|
|
135
|
+
| [markdown-preferences/link-paren-spacing](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-spacing.html) | enforce consistent spacing inside link parentheses | 🔧 | 💄 |
|
|
133
136
|
| [markdown-preferences/link-title-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-title-style.html) | enforce a consistent style for link titles | 🔧 | 💄 |
|
|
134
137
|
| [markdown-preferences/list-marker-alignment](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/list-marker-alignment.html) | enforce consistent alignment of list markers | 🔧 | ⭐💄 |
|
|
135
138
|
| [markdown-preferences/no-laziness-blockquotes](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/no-laziness-blockquotes.html) | disallow laziness in blockquotes | | ⭐💄 |
|
|
@@ -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
|
|
@@ -95,6 +100,16 @@ interface RuleOptions {
|
|
|
95
100
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-destination-style.html
|
|
96
101
|
*/
|
|
97
102
|
'markdown-preferences/link-destination-style'?: Linter.RuleEntry<MarkdownPreferencesLinkDestinationStyle>;
|
|
103
|
+
/**
|
|
104
|
+
* enforce linebreaks after opening and before closing link parentheses
|
|
105
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-newline.html
|
|
106
|
+
*/
|
|
107
|
+
'markdown-preferences/link-paren-newline'?: Linter.RuleEntry<MarkdownPreferencesLinkParenNewline>;
|
|
108
|
+
/**
|
|
109
|
+
* enforce consistent spacing inside link parentheses
|
|
110
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-spacing.html
|
|
111
|
+
*/
|
|
112
|
+
'markdown-preferences/link-paren-spacing'?: Linter.RuleEntry<MarkdownPreferencesLinkParenSpacing>;
|
|
98
113
|
/**
|
|
99
114
|
* enforce a consistent style for link titles
|
|
100
115
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-title-style.html
|
|
@@ -276,6 +291,13 @@ type MarkdownPreferencesHeadingCasing = [] | [{
|
|
|
276
291
|
ignorePatterns?: string[];
|
|
277
292
|
minorWords?: string[];
|
|
278
293
|
}];
|
|
294
|
+
type MarkdownPreferencesIndent = [] | [{
|
|
295
|
+
listItems?: {
|
|
296
|
+
first?: ("ignore" | number);
|
|
297
|
+
other?: (("first" | "minimum") | number);
|
|
298
|
+
relativeTo?: ("markerStart" | "markerEnd" | "taskListMarkerStart" | "taskListMarkerEnd");
|
|
299
|
+
};
|
|
300
|
+
}];
|
|
279
301
|
type MarkdownPreferencesLevel1HeadingStyle = [] | [{
|
|
280
302
|
style?: ("atx" | "setext");
|
|
281
303
|
allowMultilineSetext?: boolean;
|
|
@@ -297,6 +319,13 @@ type MarkdownPreferencesLinkDestinationStyle = [] | [{
|
|
|
297
319
|
avoidEscape?: boolean;
|
|
298
320
|
[k: string]: unknown | undefined;
|
|
299
321
|
}];
|
|
322
|
+
type MarkdownPreferencesLinkParenNewline = [] | [{
|
|
323
|
+
newline?: ("always" | "never" | "consistent");
|
|
324
|
+
multiline?: boolean;
|
|
325
|
+
}];
|
|
326
|
+
type MarkdownPreferencesLinkParenSpacing = [] | [{
|
|
327
|
+
space?: ("always" | "never");
|
|
328
|
+
}];
|
|
300
329
|
type MarkdownPreferencesLinkTitleStyle = [] | [{
|
|
301
330
|
style?: ("double" | "single" | "parentheses");
|
|
302
331
|
avoidEscape?: boolean;
|
|
@@ -425,7 +454,7 @@ declare namespace meta_d_exports {
|
|
|
425
454
|
export { name, version };
|
|
426
455
|
}
|
|
427
456
|
declare const name: "eslint-plugin-markdown-preferences";
|
|
428
|
-
declare const version: "0.
|
|
457
|
+
declare const version: "0.24.0";
|
|
429
458
|
//#endregion
|
|
430
459
|
//#region src/index.d.ts
|
|
431
460
|
declare const configs: {
|