Skip to content

Commit ccbc33e

Browse files
committed
chore: enable plugin to disable trailing whitespace
1 parent 57a87b8 commit ccbc33e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

etc/remark/plugins/lint/index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ plugins.push([
9191
[ 'error' ]
9292
]);
9393

94+
/* eslint-disable stdlib/jsdoc-no-multiple-blank-lines */
95+
9496
/**
9597
* Require `fenced` code block style.
9698
*
@@ -118,6 +120,8 @@ plugins.push([
118120
[ 'error', 'fenced' ]
119121
]);
120122

123+
/* eslint-enable stdlib/jsdoc-no-multiple-blank-lines */
124+
121125
/**
122126
* Require lowercased definition labels.
123127
*
@@ -158,6 +162,8 @@ plugins.push([
158162
[ 'error' ]
159163
]);
160164

165+
/* eslint-disable stdlib/jsdoc-no-multiple-blank-lines */
166+
161167
/**
162168
* Require `_` be used as the emphasis marker.
163169
*
@@ -178,6 +184,8 @@ plugins.push([
178184
[ 'error', '_' ]
179185
]);
180186

187+
/* eslint-enable stdlib/jsdoc-no-multiple-blank-lines */
188+
181189
/**
182190
* Require fenced code blocks to have a language flag.
183191
*
@@ -1064,6 +1072,16 @@ plugins.push([
10641072
[ 'error' ]
10651073
]);
10661074

1075+
/**
1076+
* Never allow trailing whitespace.
1077+
*
1078+
* @see [no-trailing-spaces]{@link https://github.com/Trott/remark-lint-no-trailing-spaces}
1079+
*/
1080+
plugins.push([
1081+
require( 'remark-lint-no-trailing-spaces' ),
1082+
[ 'error' ]
1083+
]);
1084+
10671085
/**
10681086
* Never allow undefined references.
10691087
*
@@ -1160,6 +1178,8 @@ plugins.push([
11601178
[ 'off', 'ordered' ]
11611179
]);
11621180

1181+
/* eslint-disable stdlib/jsdoc-no-multiple-blank-lines */
1182+
11631183
/**
11641184
* Require that the horizontal rule style be three consecutive asterisks `---`.
11651185
*
@@ -1181,6 +1201,8 @@ plugins.push([
11811201
[ 'error', '* * *' ]
11821202
]);
11831203

1204+
/* eslint-enable stdlib/jsdoc-no-multiple-blank-lines */
1205+
11841206
/**
11851207
* Set the strong marker to asterisks.
11861208
*

0 commit comments

Comments
 (0)