eslint-plugin-markdown-preferences 0.21.0 → 0.23.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 +6 -0
- package/lib/index.d.ts +56 -1
- package/lib/index.js +1550 -567
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -127,6 +127,12 @@ The rules with the following 💄 are included in the `standard` config.
|
|
|
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
128
|
| [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
129
|
| [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
|
+
| [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
|
+
| [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
|
+
| [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 | 🔧 | 💄 |
|
|
133
|
+
| [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 | 🔧 | 💄 |
|
|
134
|
+
| [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 | 🔧 | 💄 |
|
|
135
|
+
| [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 | 🔧 | 💄 |
|
|
130
136
|
| [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 | 🔧 | ⭐💄 |
|
|
131
137
|
| [markdown-preferences/no-laziness-blockquotes](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/no-laziness-blockquotes.html) | disallow laziness in blockquotes | | ⭐💄 |
|
|
132
138
|
| [markdown-preferences/no-multi-spaces](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/no-multi-spaces.html) | disallow multiple spaces | 🔧 | 💄 |
|
package/lib/index.d.ts
CHANGED
|
@@ -80,6 +80,36 @@ interface RuleOptions {
|
|
|
80
80
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/level2-heading-style.html
|
|
81
81
|
*/
|
|
82
82
|
'markdown-preferences/level2-heading-style'?: Linter.RuleEntry<MarkdownPreferencesLevel2HeadingStyle>;
|
|
83
|
+
/**
|
|
84
|
+
* enforce linebreaks after opening and before closing link brackets
|
|
85
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-bracket-newline.html
|
|
86
|
+
*/
|
|
87
|
+
'markdown-preferences/link-bracket-newline'?: Linter.RuleEntry<MarkdownPreferencesLinkBracketNewline>;
|
|
88
|
+
/**
|
|
89
|
+
* enforce consistent spacing inside link brackets
|
|
90
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-bracket-spacing.html
|
|
91
|
+
*/
|
|
92
|
+
'markdown-preferences/link-bracket-spacing'?: Linter.RuleEntry<MarkdownPreferencesLinkBracketSpacing>;
|
|
93
|
+
/**
|
|
94
|
+
* enforce a consistent style for link destinations
|
|
95
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-destination-style.html
|
|
96
|
+
*/
|
|
97
|
+
'markdown-preferences/link-destination-style'?: Linter.RuleEntry<MarkdownPreferencesLinkDestinationStyle>;
|
|
98
|
+
/**
|
|
99
|
+
* enforce linebreaks after opening and before closing link parentheses
|
|
100
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-newline.html
|
|
101
|
+
*/
|
|
102
|
+
'markdown-preferences/link-paren-newline'?: Linter.RuleEntry<MarkdownPreferencesLinkParenNewline>;
|
|
103
|
+
/**
|
|
104
|
+
* enforce consistent spacing inside link parentheses
|
|
105
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-paren-spacing.html
|
|
106
|
+
*/
|
|
107
|
+
'markdown-preferences/link-paren-spacing'?: Linter.RuleEntry<MarkdownPreferencesLinkParenSpacing>;
|
|
108
|
+
/**
|
|
109
|
+
* enforce a consistent style for link titles
|
|
110
|
+
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-title-style.html
|
|
111
|
+
*/
|
|
112
|
+
'markdown-preferences/link-title-style'?: Linter.RuleEntry<MarkdownPreferencesLinkTitleStyle>;
|
|
83
113
|
/**
|
|
84
114
|
* enforce consistent alignment of list markers
|
|
85
115
|
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/list-marker-alignment.html
|
|
@@ -264,6 +294,31 @@ type MarkdownPreferencesLevel2HeadingStyle = [] | [{
|
|
|
264
294
|
style?: ("atx" | "setext");
|
|
265
295
|
allowMultilineSetext?: boolean;
|
|
266
296
|
}];
|
|
297
|
+
type MarkdownPreferencesLinkBracketNewline = [] | [{
|
|
298
|
+
newline?: ("always" | "never" | "consistent");
|
|
299
|
+
multiline?: boolean;
|
|
300
|
+
}];
|
|
301
|
+
type MarkdownPreferencesLinkBracketSpacing = [] | [{
|
|
302
|
+
space?: ("always" | "never");
|
|
303
|
+
imagesInLinks?: boolean;
|
|
304
|
+
}];
|
|
305
|
+
type MarkdownPreferencesLinkDestinationStyle = [] | [{
|
|
306
|
+
style?: ("bare" | "pointy-brackets");
|
|
307
|
+
avoidEscape?: boolean;
|
|
308
|
+
[k: string]: unknown | undefined;
|
|
309
|
+
}];
|
|
310
|
+
type MarkdownPreferencesLinkParenNewline = [] | [{
|
|
311
|
+
newline?: ("always" | "never" | "consistent");
|
|
312
|
+
multiline?: boolean;
|
|
313
|
+
}];
|
|
314
|
+
type MarkdownPreferencesLinkParenSpacing = [] | [{
|
|
315
|
+
space?: ("always" | "never");
|
|
316
|
+
}];
|
|
317
|
+
type MarkdownPreferencesLinkTitleStyle = [] | [{
|
|
318
|
+
style?: ("double" | "single" | "parentheses");
|
|
319
|
+
avoidEscape?: boolean;
|
|
320
|
+
[k: string]: unknown | undefined;
|
|
321
|
+
}];
|
|
267
322
|
type MarkdownPreferencesListMarkerAlignment = [] | [{
|
|
268
323
|
align?: ("left" | "right");
|
|
269
324
|
}];
|
|
@@ -387,7 +442,7 @@ declare namespace meta_d_exports {
|
|
|
387
442
|
export { name, version };
|
|
388
443
|
}
|
|
389
444
|
declare const name: "eslint-plugin-markdown-preferences";
|
|
390
|
-
declare const version: "0.
|
|
445
|
+
declare const version: "0.23.0";
|
|
391
446
|
//#endregion
|
|
392
447
|
//#region src/index.d.ts
|
|
393
448
|
declare const configs: {
|