Skip to content

Commit 1587b95

Browse files
committed
Enable rule
1 parent 4ceaa25 commit 1587b95

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

etc/eslint/rules/stdlib.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,57 @@ rules[ 'stdlib/jsdoc-no-heading-content-indent' ] = 'error';
11131113
*/
11141114
rules[ 'stdlib/jsdoc-no-heading-indent' ] = 'error';
11151115

1116+
/**
1117+
* Prevent indentation of paragraph content.
1118+
*
1119+
* @name jsdoc-no-paragraph-content-indent
1120+
* @memberof rules
1121+
* @type {string}
1122+
* @default 'error'
1123+
*
1124+
* @example
1125+
* // Bad...
1126+
*
1127+
* /**
1128+
* * Boop beep.
1129+
* *
1130+
* * ## Boop
1131+
* *
1132+
* * Beep.
1133+
* *
1134+
* * @return {string} a value
1135+
* *
1136+
* * @examples
1137+
* * var str = beep();
1138+
* * // returns 'boop'
1139+
* *\/
1140+
* function beep() {
1141+
* return 'boop';
1142+
* }
1143+
*
1144+
*
1145+
* @example
1146+
* // Good...
1147+
*
1148+
* /**
1149+
* * Boop beep.
1150+
* *
1151+
* * ## Boop
1152+
* *
1153+
* * Beep.
1154+
* *
1155+
* * @return {string} a value
1156+
* *
1157+
* * @examples
1158+
* * var str = beep();
1159+
* * // returns 'boop'
1160+
* *\/
1161+
* function beep() {
1162+
* return 'boop';
1163+
* }
1164+
*/
1165+
rules[ 'stdlib/jsdoc-no-paragraph-content-indent' ] = 'error';
1166+
11161167
/**
11171168
* Prevent unneeded indentation before tables.
11181169
*

0 commit comments

Comments
 (0)