Skip to content

Commit 3db37f0

Browse files
committed
docs: update wording
1 parent 5152b40 commit 3db37f0

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

etc/eslint/rules/stdlib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3993,7 +3993,7 @@ rules[ 'stdlib/new-cap-regexp' ] = 'error';
39933993
rules[ '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

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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' );

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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
*

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)