eslint-plugin-markdown-preferences 0.21.0 → 0.22.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 CHANGED
@@ -127,6 +127,10 @@ 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-title-style](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-title-style.html) | enforce a consistent style for link titles | 🔧 | 💄 |
130
134
  | [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
135
  | [markdown-preferences/no-laziness-blockquotes](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/no-laziness-blockquotes.html) | disallow laziness in blockquotes | | ⭐💄 |
132
136
  | [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,26 @@ 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 a consistent style for link titles
100
+ * @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/link-title-style.html
101
+ */
102
+ 'markdown-preferences/link-title-style'?: Linter.RuleEntry<MarkdownPreferencesLinkTitleStyle>;
83
103
  /**
84
104
  * enforce consistent alignment of list markers
85
105
  * @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/list-marker-alignment.html
@@ -264,6 +284,24 @@ type MarkdownPreferencesLevel2HeadingStyle = [] | [{
264
284
  style?: ("atx" | "setext");
265
285
  allowMultilineSetext?: boolean;
266
286
  }];
287
+ type MarkdownPreferencesLinkBracketNewline = [] | [{
288
+ newline?: ("always" | "never" | "consistent");
289
+ multiline?: boolean;
290
+ }];
291
+ type MarkdownPreferencesLinkBracketSpacing = [] | [{
292
+ space?: ("always" | "never");
293
+ imagesInLinks?: boolean;
294
+ }];
295
+ type MarkdownPreferencesLinkDestinationStyle = [] | [{
296
+ style?: ("bare" | "pointy-brackets");
297
+ avoidEscape?: boolean;
298
+ [k: string]: unknown | undefined;
299
+ }];
300
+ type MarkdownPreferencesLinkTitleStyle = [] | [{
301
+ style?: ("double" | "single" | "parentheses");
302
+ avoidEscape?: boolean;
303
+ [k: string]: unknown | undefined;
304
+ }];
267
305
  type MarkdownPreferencesListMarkerAlignment = [] | [{
268
306
  align?: ("left" | "right");
269
307
  }];
@@ -387,7 +425,7 @@ declare namespace meta_d_exports {
387
425
  export { name, version };
388
426
  }
389
427
  declare const name: "eslint-plugin-markdown-preferences";
390
- declare const version: "0.21.0";
428
+ declare const version: "0.22.0";
391
429
  //#endregion
392
430
  //#region src/index.d.ts
393
431
  declare const configs: {