File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1113,6 +1113,57 @@ rules[ 'stdlib/jsdoc-no-heading-content-indent' ] = 'error';
11131113*/
11141114rules [ '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*
You can’t perform that action at this time.
0 commit comments