Skip to content

Commit cc6e07c

Browse files
committed
build: enable lint rule
1 parent 77e2046 commit cc6e07c

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

etc/eslint/rules/stdlib.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2785,6 +2785,48 @@ rules[ 'stdlib/jsdoc-no-shortcut-reference-image' ] = 'error';
27852785
*/
27862786
rules[ 'stdlib/jsdoc-no-shortcut-reference-link' ] = 'error';
27872787

2788+
/**
2789+
* Prevent space-aligned asterisks for JSDoc comments.
2790+
*
2791+
* @name
2792+
* @memberof rules
2793+
* @type {string}
2794+
* @default 'error'
2795+
*
2796+
* @example
2797+
* // Bad...
2798+
*
2799+
* /**
2800+
* * Beep boop.
2801+
* *
2802+
* * @returns {string} a value
2803+
* *
2804+
* * @example
2805+
* * var str = beep();
2806+
* * // returns 'boop'
2807+
* *\/
2808+
* function beep() {
2809+
* return 'boop';
2810+
* }
2811+
*
2812+
* @example
2813+
* // Good...
2814+
*
2815+
* /**
2816+
* * Beep boop.
2817+
* *
2818+
* * @returns {string} a value
2819+
* *
2820+
* * @example
2821+
* * var str = beep();
2822+
* * // returns 'boop'
2823+
* *\/
2824+
* function beep() {
2825+
* return 'boop';
2826+
* }
2827+
*/
2828+
rules[ 'stdlib/jsdoc-no-space-aligned-asterisks' ] = 'error';
2829+
27882830
/**
27892831
* Prevent unnecessary indentation before tables.
27902832
*

0 commit comments

Comments
 (0)