File tree 16 files changed +3
-375
lines changed
16 files changed +3
-375
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,4 @@ rules and **remark-lint**’s rules.
40
40
| MD034 | no-literal-urls | - |
41
41
| MD035 | rule-style | - |
42
42
| MD036 | no-emphasis-as-heading | remark-lint only warns when the emphasis is followed by a colon, but that might change. |
43
- | MD037 | no-inline-padding | - |
44
- | MD038 | no-inline-padding | - |
45
- | MD039 | no-inline-padding | - |
46
- | MD039 | no-inline-padding | - |
47
43
| MD040 | fenced-code-flag | - |
Original file line number Diff line number Diff line change 80
80
" packages/remark-lint-no-heading-like-paragraph/" ,
81
81
" packages/remark-lint-no-heading-punctuation/" ,
82
82
" packages/remark-lint-no-html/" ,
83
- " packages/remark-lint-no-inline-padding/" ,
84
83
" packages/remark-lint-no-literal-urls/" ,
85
84
" packages/remark-lint-no-missing-blank-lines/" ,
86
85
" packages/remark-lint-no-multiple-toplevel-headings/" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ import remarkLintNoFileNameIrregularCharacters from 'remark-lint-no-file-name-ir
145
145
import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case'
146
146
import remarkLintNoFileNameOuterDashes from 'remark-lint-no-file-name-outer-dashes'
147
147
import remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'
148
- import remarkLintNoInlinePadding from 'remark-lint-no-inline-padding'
149
148
import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls'
150
149
import remarkLintNoMultipleToplevelHeadings from 'remark-lint-no-multiple-toplevel-headings'
151
150
import remarkLintNoShellDollars from 'remark-lint-no-shell-dollars'
@@ -270,9 +269,6 @@ const remarkPresetLintMarkdownStyleGuide = {
270
269
// https://cirosantilli.com/markdown-style-guide/#separate-consecutive-elements.
271
270
// Not checked.
272
271
273
- // https://cirosantilli.com/markdown-style-guide/#span-elements
274
- remarkLintNoInlinePadding ,
275
-
276
272
// https://cirosantilli.com/markdown-style-guide/#reference-style-links
277
273
remarkLintNoShortcutReferenceImage ,
278
274
remarkLintNoShortcutReferenceLink ,
Original file line number Diff line number Diff line change 60
60
"remark-lint-no-file-name-mixed-case" : " ^2.0.0" ,
61
61
"remark-lint-no-file-name-outer-dashes" : " ^2.0.0" ,
62
62
"remark-lint-no-heading-punctuation" : " ^3.0.0" ,
63
- "remark-lint-no-inline-padding" : " ^4.0.0" ,
64
63
"remark-lint-no-literal-urls" : " ^3.0.0" ,
65
64
"remark-lint-no-multiple-toplevel-headings" : " ^3.0.0" ,
66
65
"remark-lint-no-shell-dollars" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ This preset includes the following plugins:
159
159
| [ ` remark-lint-no-file-name-mixed-case ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-mixed-case ) | |
160
160
| [ ` remark-lint-no-file-name-outer-dashes ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-outer-dashes ) | |
161
161
| [ ` remark-lint-no-heading-punctuation ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-punctuation ) | ` ':.' ` |
162
- | [ ` remark-lint-no-inline-padding ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-inline-padding ) | |
163
162
| [ ` remark-lint-no-literal-urls ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls ) | |
164
163
| [ ` remark-lint-no-multiple-toplevel-headings ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-multiple-toplevel-headings ) | |
165
164
| [ ` remark-lint-no-shell-dollars ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shell-dollars ) | |
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import remarkLintListItemIndent from 'remark-lint-list-item-indent'
34
34
import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'
35
35
import remarkLintNoDuplicateDefinitions from 'remark-lint-no-duplicate-definitions'
36
36
import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent'
37
- import remarkLintNoInlinePadding from 'remark-lint-no-inline-padding'
38
37
import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls'
39
38
import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image'
40
39
import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
@@ -58,7 +57,6 @@ const remarkPresetLintRecommended = {
58
57
remarkLintHardBreakSpaces ,
59
58
remarkLintNoDuplicateDefinitions ,
60
59
remarkLintNoHeadingContentIndent ,
61
- remarkLintNoInlinePadding ,
62
60
remarkLintNoShortcutReferenceImage ,
63
61
remarkLintNoShortcutReferenceLink ,
64
62
remarkLintNoUndefinedReferences ,
Original file line number Diff line number Diff line change 37
37
"remark-lint-no-blockquote-without-marker" : " ^5.0.0" ,
38
38
"remark-lint-no-duplicate-definitions" : " ^3.0.0" ,
39
39
"remark-lint-no-heading-content-indent" : " ^4.0.0" ,
40
- "remark-lint-no-inline-padding" : " ^4.0.0" ,
41
40
"remark-lint-no-literal-urls" : " ^3.0.0" ,
42
41
"remark-lint-no-shortcut-reference-image" : " ^3.0.0" ,
43
42
"remark-lint-no-shortcut-reference-link" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ This preset includes the following plugins:
48
48
| [ ` remark-lint-no-blockquote-without-marker ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-blockquote-without-marker ) | |
49
49
| [ ` remark-lint-no-duplicate-definitions ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-definitions ) | |
50
50
| [ ` remark-lint-no-heading-content-indent ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-content-indent ) | |
51
- | [ ` remark-lint-no-inline-padding ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-inline-padding ) | |
52
51
| [ ` remark-lint-no-literal-urls ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls ) | |
53
52
| [ ` remark-lint-no-shortcut-reference-image ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-image ) | |
54
53
| [ ` remark-lint-no-shortcut-reference-link ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-link ) | |
Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ The rules that are maintained here:
145
145
* [ ` remark-lint-no-heading-like-paragraph ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-like-paragraph ) — for too many hashes (h7+ “headings”)
146
146
* [ ` remark-lint-no-heading-punctuation ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-heading-punctuation ) — warn when headings end in illegal characters
147
147
* [ ` remark-lint-no-html ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-html ) — warn when HTML nodes are used
148
- * [ ` remark-lint-no-inline-padding ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-inline-padding ) — warn when inline nodes are padded with spaces
149
148
* [ ` remark-lint-no-literal-urls ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls ) — warn when URLs without angle brackets are used
150
149
* [ ` remark-lint-no-missing-blank-lines ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-missing-blank-lines ) — warn when missing blank lines
151
150
* [ ` remark-lint-no-multiple-toplevel-headings ` ] ( https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-multiple-toplevel-headings ) — warn when multiple top level headings are used
Original file line number Diff line number Diff line change 38
38
*
39
39
* @typedef PluginInfo
40
40
* Plugin.
41
- * @property {boolean } deprecated
42
- * Whether the plugin is deprecated.
43
41
* @property {string } description
44
42
* Description.
45
43
* @property {string } name
@@ -112,36 +110,27 @@ async function addPlugin(name) {
112
110
let description = ''
113
111
/** @type {string | undefined } */
114
112
let ruleId
115
- let deprecated = false
116
113
117
114
if ( name === 'remark-lint' ) {
118
115
// Empty.
119
116
} else {
120
117
ruleId = name . slice ( 'remark-lint-' . length )
121
118
122
- const deprecatedTag = tags . find ( function ( d ) {
123
- return d . tag === 'deprecated'
124
- } )
125
119
const moduleTag = tags . find ( function ( d ) {
126
120
return d . tag === 'module'
127
121
} )
128
122
129
123
assert ( moduleTag , 'expected `@module` in JSDoc' )
130
124
assert . equal ( moduleTag . name , ruleId , 'expected correct `@module`' )
131
125
132
- description = deprecatedTag
133
- ? deprecatedTag . description
134
- : fileInfo . description
135
-
136
- assert ( description , 'expected description (or `@deprecated`)' )
126
+ description = fileInfo . description
127
+ assert ( description , 'expected description' )
137
128
138
129
description = strip ( description ) . trim ( )
139
- deprecated = Boolean ( deprecatedTag )
140
130
}
141
131
142
132
/** @type {PluginInfo } */
143
133
const result = {
144
- deprecated,
145
134
description,
146
135
name,
147
136
ruleId,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default function remarkListOfRules() {
44
44
''
45
45
)
46
46
47
- if ( ! info . ruleId || / ^ d e p r e c a t e d / i . test ( description ) ) return
47
+ if ( ! info . ruleId ) return
48
48
49
49
assert ( typeof pack . repository === 'string' )
50
50
You can’t perform that action at this time.
0 commit comments