Skip to content

Commit 906012e

Browse files
committedDec 15, 2023
Remove remark-lint-no-inline-padding
1 parent 9cdda80 commit 906012e

File tree

16 files changed

+3
-375
lines changed

16 files changed

+3
-375
lines changed
 

‎doc/comparison-to-markdownlint.md

-4
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,4 @@ rules and **remark-lint**’s rules.
4040
| MD034 | no-literal-urls | - |
4141
| MD035 | rule-style | - |
4242
| 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 | - |
4743
| MD040 | fenced-code-flag | - |

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"packages/remark-lint-no-heading-like-paragraph/",
8181
"packages/remark-lint-no-heading-punctuation/",
8282
"packages/remark-lint-no-html/",
83-
"packages/remark-lint-no-inline-padding/",
8483
"packages/remark-lint-no-literal-urls/",
8584
"packages/remark-lint-no-missing-blank-lines/",
8685
"packages/remark-lint-no-multiple-toplevel-headings/",

‎packages/remark-lint-no-inline-padding/.npmrc

-2
This file was deleted.

‎packages/remark-lint-no-inline-padding/index.js

-73
This file was deleted.

‎packages/remark-lint-no-inline-padding/package.json

-54
This file was deleted.

‎packages/remark-lint-no-inline-padding/readme.md

-213
This file was deleted.

‎packages/remark-lint-no-inline-padding/tsconfig.json

-3
This file was deleted.

‎packages/remark-preset-lint-markdown-style-guide/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ import remarkLintNoFileNameIrregularCharacters from 'remark-lint-no-file-name-ir
145145
import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case'
146146
import remarkLintNoFileNameOuterDashes from 'remark-lint-no-file-name-outer-dashes'
147147
import remarkLintNoHeadingPunctuation from 'remark-lint-no-heading-punctuation'
148-
import remarkLintNoInlinePadding from 'remark-lint-no-inline-padding'
149148
import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls'
150149
import remarkLintNoMultipleToplevelHeadings from 'remark-lint-no-multiple-toplevel-headings'
151150
import remarkLintNoShellDollars from 'remark-lint-no-shell-dollars'
@@ -270,9 +269,6 @@ const remarkPresetLintMarkdownStyleGuide = {
270269
// https://cirosantilli.com/markdown-style-guide/#separate-consecutive-elements.
271270
// Not checked.
272271

273-
// https://cirosantilli.com/markdown-style-guide/#span-elements
274-
remarkLintNoInlinePadding,
275-
276272
// https://cirosantilli.com/markdown-style-guide/#reference-style-links
277273
remarkLintNoShortcutReferenceImage,
278274
remarkLintNoShortcutReferenceLink,

‎packages/remark-preset-lint-markdown-style-guide/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"remark-lint-no-file-name-mixed-case": "^2.0.0",
6161
"remark-lint-no-file-name-outer-dashes": "^2.0.0",
6262
"remark-lint-no-heading-punctuation": "^3.0.0",
63-
"remark-lint-no-inline-padding": "^4.0.0",
6463
"remark-lint-no-literal-urls": "^3.0.0",
6564
"remark-lint-no-multiple-toplevel-headings": "^3.0.0",
6665
"remark-lint-no-shell-dollars": "^3.0.0",

‎packages/remark-preset-lint-markdown-style-guide/readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ This preset includes the following plugins:
159159
| [`remark-lint-no-file-name-mixed-case`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-mixed-case) | |
160160
| [`remark-lint-no-file-name-outer-dashes`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-file-name-outer-dashes) | |
161161
| [`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) | |
163162
| [`remark-lint-no-literal-urls`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls) | |
164163
| [`remark-lint-no-multiple-toplevel-headings`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-multiple-toplevel-headings) | |
165164
| [`remark-lint-no-shell-dollars`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shell-dollars) | |

‎packages/remark-preset-lint-recommended/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import remarkLintListItemIndent from 'remark-lint-list-item-indent'
3434
import remarkLintNoBlockquoteWithoutMarker from 'remark-lint-no-blockquote-without-marker'
3535
import remarkLintNoDuplicateDefinitions from 'remark-lint-no-duplicate-definitions'
3636
import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent'
37-
import remarkLintNoInlinePadding from 'remark-lint-no-inline-padding'
3837
import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls'
3938
import remarkLintNoShortcutReferenceImage from 'remark-lint-no-shortcut-reference-image'
4039
import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
@@ -58,7 +57,6 @@ const remarkPresetLintRecommended = {
5857
remarkLintHardBreakSpaces,
5958
remarkLintNoDuplicateDefinitions,
6059
remarkLintNoHeadingContentIndent,
61-
remarkLintNoInlinePadding,
6260
remarkLintNoShortcutReferenceImage,
6361
remarkLintNoShortcutReferenceLink,
6462
remarkLintNoUndefinedReferences,

‎packages/remark-preset-lint-recommended/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"remark-lint-no-blockquote-without-marker": "^5.0.0",
3838
"remark-lint-no-duplicate-definitions": "^3.0.0",
3939
"remark-lint-no-heading-content-indent": "^4.0.0",
40-
"remark-lint-no-inline-padding": "^4.0.0",
4140
"remark-lint-no-literal-urls": "^3.0.0",
4241
"remark-lint-no-shortcut-reference-image": "^3.0.0",
4342
"remark-lint-no-shortcut-reference-link": "^3.0.0",

‎packages/remark-preset-lint-recommended/readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ This preset includes the following plugins:
4848
| [`remark-lint-no-blockquote-without-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-blockquote-without-marker) | |
4949
| [`remark-lint-no-duplicate-definitions`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-duplicate-definitions) | |
5050
| [`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) | |
5251
| [`remark-lint-no-literal-urls`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-literal-urls) | |
5352
| [`remark-lint-no-shortcut-reference-image`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-image) | |
5453
| [`remark-lint-no-shortcut-reference-link`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-no-shortcut-reference-link) | |

‎readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ The rules that are maintained here:
145145
* [`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”)
146146
* [`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
147147
* [`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
149148
* [`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
150149
* [`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
151150
* [`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

‎script/info.js

+2-13
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
*
3939
* @typedef PluginInfo
4040
* Plugin.
41-
* @property {boolean} deprecated
42-
* Whether the plugin is deprecated.
4341
* @property {string} description
4442
* Description.
4543
* @property {string} name
@@ -112,36 +110,27 @@ async function addPlugin(name) {
112110
let description = ''
113111
/** @type {string | undefined} */
114112
let ruleId
115-
let deprecated = false
116113

117114
if (name === 'remark-lint') {
118115
// Empty.
119116
} else {
120117
ruleId = name.slice('remark-lint-'.length)
121118

122-
const deprecatedTag = tags.find(function (d) {
123-
return d.tag === 'deprecated'
124-
})
125119
const moduleTag = tags.find(function (d) {
126120
return d.tag === 'module'
127121
})
128122

129123
assert(moduleTag, 'expected `@module` in JSDoc')
130124
assert.equal(moduleTag.name, ruleId, 'expected correct `@module`')
131125

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')
137128

138129
description = strip(description).trim()
139-
deprecated = Boolean(deprecatedTag)
140130
}
141131

142132
/** @type {PluginInfo} */
143133
const result = {
144-
deprecated,
145134
description,
146135
name,
147136
ruleId,

‎script/plugin/list-of-plugins.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function remarkListOfRules() {
4444
''
4545
)
4646

47-
if (!info.ruleId || /^deprecated/i.test(description)) return
47+
if (!info.ruleId) return
4848

4949
assert(typeof pack.repository === 'string')
5050

0 commit comments

Comments
 (0)
Please sign in to comment.