File tree Expand file tree Collapse file tree 7 files changed +21
-11
lines changed
lib/node_modules/@stdlib/_tools/eslint/rules
jsdoc-no-space-aligned-asterisks Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -3993,7 +3993,7 @@ rules[ 'stdlib/new-cap-regexp' ] = 'error';
39933993rules [ 'stdlib/no-dynamic-require' ] = 'error' ;
39943994
39953995/**
3996- * Require that comments are not empty .
3996+ * Disallow empty comments.
39973997*
39983998* @name no-empty-comments
39993999* @memberof rules
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
2020
2121# No Space-Aligned Asterisks
2222
23- > [ ESLint rule] [ eslint-rules ] to prevent prevent space-aligned asterisks for JSDoc comments.
23+ > [ ESLint rule] [ eslint-rules ] to disallow space-aligned asterisks for JSDoc comments.
2424
2525<section class =" intro " >
2626
@@ -38,7 +38,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisk
3838
3939#### rule
4040
41- [ ESLint rule] [ eslint-rules ] to prevent space-aligned asterisks for JSDoc comments.
41+ [ ESLint rule] [ eslint-rules ] to disallow space-aligned asterisks for JSDoc comments.
4242
4343** Bad** :
4444
Original file line number Diff line number Diff line change 11{
22 "name" : " @stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks" ,
33 "version" : " 0.0.0" ,
4- "description" : " ESLint rule to prevent space-aligned asterisks for JSDoc comments." ,
4+ "description" : " ESLint rule to disallow space-aligned asterisks for JSDoc comments." ,
55 "license" : " Apache-2.0" ,
66 "author" : {
77 "name" : " The Stdlib Authors" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
2020
2121# No Empty Comments
2222
23- > [ ESLint rule] [ eslint-rules ] to prevent empty comments.
23+ > [ ESLint rule] [ eslint-rules ] to disallow empty comments.
2424
2525<section class =" intro " >
2626
@@ -38,7 +38,7 @@ var rule = require( '@stdlib/_tools/eslint/rules/no-empty-comments' );
3838
3939#### rule
4040
41- [ ESLint rule] [ eslint-rules ] to prevent empty comments. Comments are considered empty if they contain only whitespace characters .
41+ [ ESLint rule] [ eslint-rules ] to disallow empty comments.
4242
4343** Bad** :
4444
@@ -70,6 +70,16 @@ function square( x ) {
7070
7171<!-- /.usage -->
7272
73+ <section class =" notes " >
74+
75+ ## Notes
76+
77+ - Comments are considered empty if they contain only whitespace characters.
78+
79+ </section >
80+
81+ <!-- /.notes -->
82+
7383<section class =" examples " >
7484
7585## Examples
@@ -88,8 +98,8 @@ code = [
8898 ' function pow2( x ) {' ,
8999 ' var out;' ,
90100 ' ' ,
91- ' // square the number: ' ,
92- ' out = x*x; // x^2 ' ,
101+ ' /* */ ' ,
102+ ' out = x*x; //' ,
93103 ' return out;' ,
94104 ' }'
95105].join ( ' \n ' );
Original file line number Diff line number Diff line change 1919'use strict' ;
2020
2121/**
22- * ESLint rule to ensure that there are no empty comments.
22+ * ESLint rule to disallow empty comments.
2323*
2424* @module @stdlib /_tools/eslint/rules/no-empty-comments
2525*
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function main(context) {
6767 }
6868
6969 /**
70- * Checks if there are empty comments in the code.
70+ * Checks for empty code comments .
7171 *
7272 * @private
7373 * @param {ASTNode } node - program to examine
Original file line number Diff line number Diff line change 11{
22 "name" : " @stdlib/_tools/eslint/rules/no-empty-comments" ,
33 "version" : " 0.0.0" ,
4- "description" : " ESLint rule to enforce that comments start with an uppercase letter. " ,
4+ "description" : " ESLint rule to disallow empty comments" ,
55 "license" : " Apache-2.0" ,
66 "author" : {
77 "name" : " The Stdlib Authors" ,
You can’t perform that action at this time.
0 commit comments