diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/README.md b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/README.md
new file mode 100644
index 000000000000..546432c7af0c
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/README.md
@@ -0,0 +1,172 @@
+
+
+# doctest-annotation-spacing
+
+> [ESLint rule][eslint-rules] to enforce spacing in return annotations in single-line comments.
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var rule = require( '@stdlib/_tools/eslint/rules/doctest-annotation-spacing' );
+```
+
+#### rule
+
+[ESLint rule][eslint-rules] to enforce spacing in return annotations in single-line comments. The rule checks `// returns` and `// =>` annotations (including `// e.g., returns` and `// e.g., =>` variants) and ensures:
+
+- Exactly 1 space between `//` and the annotation keyword
+- Exactly 1 space after the annotation keyword
+
+**Bad** (too many spaces after `returns`):
+
+
+
+```javascript
+var v = 3.14;
+// returns 3.14
+```
+
+**Bad** (no space before `=>`):
+
+
+
+```javascript
+console.log( 'beep' );
+//=> 'beep'
+```
+
+**Bad** (too many spaces before `returns`):
+
+
+
+```javascript
+var x = true;
+// returns true
+```
+
+**Good**:
+
+```javascript
+var v = 3.14;
+// returns 3.14
+
+console.log( 'beep' );
+// => 'beep'
+```
+
+
+
+
+
+
+
+## Notes
+
+- This rule only applies to single-line comments (starting with `//`). Multi-line comments (`/* ... */`) are ignored.
+
+- The rule matches the following patterns:
+
+ - `// returns`
+ - `// =>`
+ - `// e.g., returns`
+ - `// e.g., =>`
+
+- The rule enforces two spacing requirements:
+
+ - Exactly 1 space after `//`
+ - Exactly 1 space after the keyword
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var Linter = require( 'eslint' ).Linter;
+var rule = require( '@stdlib/_tools/eslint/rules/doctest-annotation-spacing' );
+
+var linter = new Linter();
+
+var code = [
+ 'var v = foo();',
+ '// returns \'beep\'',
+ '',
+ 'console.log( bar() );',
+ '// => \'boop\''
+].join( '\n' );
+
+linter.defineRule( 'doctest-annotation-spacing', rule );
+
+var result = linter.verify( code, {
+ 'rules': {
+ 'doctest-annotation-spacing': 'error'
+ }
+});
+/* returns
+ [
+ {
+ 'ruleId': 'doctest-annotation-spacing',
+ 'severity': 2,
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 13 space(s).',
+ 'line': 2,
+ 'column': 1,
+ 'nodeType': null,
+ 'endLine': 2,
+ 'endColumn': 30
+ }
+ ]
+*/
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[eslint-rules]: https://eslint.org/docs/developer-guide/working-with-rules
+
+
+
+
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/examples/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/examples/index.js
new file mode 100644
index 000000000000..22d5f6723a7b
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/examples/index.js
@@ -0,0 +1,55 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var Linter = require( 'eslint' ).Linter;
+var rule = require( './../lib' );
+
+var linter = new Linter();
+
+var code = [
+ 'var v = foo();',
+ '// returns \'beep\'',
+ '',
+ 'console.log( bar() );',
+ '// => \'boop\''
+].join( '\n' );
+
+linter.defineRule( 'doctest-annotation-spacing', rule );
+
+var result = linter.verify( code, {
+ 'rules': {
+ 'doctest-annotation-spacing': 'error'
+ }
+});
+console.log( result );
+/* =>
+ [
+ {
+ 'ruleId': 'doctest-annotation-spacing',
+ 'severity': 2,
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space(s). Found 13 space(s).',
+ 'line': 2,
+ 'column': 1,
+ 'nodeType': null,
+ 'endLine': 2,
+ 'endColumn': 30
+ }
+ ]
+*/
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/index.js
new file mode 100644
index 000000000000..c5254a75db9d
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/index.js
@@ -0,0 +1,39 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* ESLint rule to enforce spacing after return annotations in single-line comments.
+*
+* @module @stdlib/_tools/eslint/rules/doctest-annotation-spacing
+*
+* @example
+* var rule = require( '@stdlib/_tools/eslint/rules/doctest-annotation-spacing' );
+*
+* console.log( rule );
+*/
+
+// MODULES //
+
+var main = require( './main.js' );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/main.js
new file mode 100644
index 000000000000..9c2fff8b751f
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/lib/main.js
@@ -0,0 +1,168 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var format = require( '@stdlib/string/format' );
+
+
+// VARIABLES //
+
+/**
+* Matches a single-line return annotation.
+*
+* Regular expression: `/^\/\/( *)(?:(e\.g\.,) *)?(returns|=>)( *)/`
+*
+* - `^`
+* - match the beginning of the string
+*
+* - `\/\/`
+* - match a `//` literal
+*
+* - `( *)`
+* - capture zero or more space characters (the spacing before the keyword)
+*
+* - `(?:(e\.g\.,) *)?`
+* - optionally match the literal `e.g.,` followed by zero or more space characters, capturing `e.g.,`
+*
+* - `(returns|=>)`
+* - capture the annotation keyword `returns` or `=>`
+*
+* - `( *)`
+* - capture zero or more space characters (the spacing after the keyword)
+*
+* @constant
+* @type {RegExp}
+* @default /^\/\/( *)(?:(e\.g\.,) *)?(returns|=>)( *)/
+*/
+var RE_ANNOTATION = /^\/\/( *)(?:(e\.g\.,) *)?(returns|=>)( *)/;
+var rule;
+
+
+// FUNCTIONS //
+
+/**
+* Rule for validating that return annotations have correct spacing.
+*
+* @param {Object} context - ESLint context
+* @returns {Object} validators
+*/
+function main( context ) {
+ var source = context.getSourceCode();
+
+ /**
+ * Reports the error message.
+ *
+ * @private
+ * @param {Object} loc - error location info
+ * @param {string} msg - error message
+ */
+ function report( loc, msg ) {
+ context.report({
+ 'node': null,
+ 'message': msg,
+ 'loc': loc
+ });
+ }
+
+ /**
+ * Checks whether return annotations in the current program have correct spacing.
+ *
+ * @private
+ * @param {ASTNode} node - node to examine
+ */
+ function validate( node ) {
+ var comments;
+ var i;
+
+ comments = source.getAllComments( node );
+ for ( i = 0; i < comments.length; i++ ) {
+ checkComment( comments[ i ] );
+ }
+ }
+
+ /**
+ * Checks whether a comment is a return annotation and, if so, whether it has correct spacing.
+ *
+ * @private
+ * @param {Object} comment - comment to examine
+ */
+ function checkComment( comment ) {
+ var spacingBefore;
+ var spacingAfter;
+ var matches;
+ var keyword;
+ var prefix;
+ var text;
+ var msg;
+
+ // Only check single-line comments:
+ if ( comment.type !== 'Line' ) {
+ return;
+ }
+ // Reconstruct the comment text with the leading slashes:
+ text = '//' + comment.value;
+
+ matches = text.match( RE_ANNOTATION );
+ if ( matches ) {
+ spacingBefore = matches[ 1 ].length;
+ prefix = matches[ 2 ] || ''; // 'e.g.,' or empty
+ keyword = matches[ 3 ]; // 'returns' or '=>'
+ spacingAfter = matches[ 4 ].length;
+
+ // Check spacing before keyword (must be exactly 1 space):
+ if ( spacingBefore !== 1 ) {
+ if ( prefix ) {
+ msg = format( 'Return annotation `%s %s` should have exactly 1 space after `//`. Found %d space(s).', prefix, keyword, spacingBefore );
+ } else {
+ msg = format( 'Return annotation `%s` should have exactly 1 space after `//`. Found %d space(s).', keyword, spacingBefore );
+ }
+ report( comment.loc, msg );
+ }
+ // Check spacing after keyword (must be exactly 1 space):
+ if ( spacingAfter !== 1 ) {
+ msg = format( 'Return annotation keyword `%s` should be followed by 1 space. Found %d space(s).', keyword, spacingAfter );
+ report( comment.loc, msg );
+ }
+ }
+ }
+
+ return {
+ 'Program': validate
+ };
+}
+
+
+// MAIN //
+
+rule = {
+ 'meta': {
+ 'docs': {
+ 'description': 'enforce spacing in return annotations in single-line comments'
+ },
+ 'schema': []
+ },
+ 'create': main
+};
+
+
+// EXPORTS //
+
+module.exports = rule;
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/package.json b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/package.json
new file mode 100644
index 000000000000..eba845cb3699
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@stdlib/_tools/eslint/rules/doctest-annotation-spacing",
+ "version": "0.0.0",
+ "description": "ESLint rule to enforce spacing after return annotations in single-line comments.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "bin": {},
+ "main": "./lib",
+ "directories": {
+ "example": "./examples",
+ "lib": "./lib",
+ "test": "./test"
+ },
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "tools",
+ "tool",
+ "eslint",
+ "lint",
+ "custom",
+ "rules",
+ "rule",
+ "plugin",
+ "return",
+ "comment",
+ "annotation",
+ "spacing",
+ "returns",
+ "doctest"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/invalid.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/invalid.js
new file mode 100644
index 000000000000..19f16d3b9e38
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/invalid.js
@@ -0,0 +1,233 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var invalid = [];
+var test;
+
+// Multiple spaces after `returns`:
+test = {
+ 'code': [
+ 'var p = boop();',
+ '// returns \'bip\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 13 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Multiple spaces after `=>`:
+test = {
+ 'code': [
+ 'console.log( boop() );',
+ '// => \'bip\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `=>` should be followed by 1 space. Found 13 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// No space after `returns`:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns\'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 0 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// No space after `=>`:
+test = {
+ 'code': [
+ 'console.log( foo() );',
+ '// =>\'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `=>` should be followed by 1 space. Found 0 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Multiple spaces after `e.g., returns`:
+test = {
+ 'code': [
+ 'var v = randn();',
+ '// e.g., returns 0.5363925252089496'
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 4 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Multiple spaces after `e.g., =>`:
+test = {
+ 'code': [
+ 'console.log( randn() );',
+ '// e.g., => 0.5363925252089496'
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `=>` should be followed by 1 space. Found 4 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Two spaces after `returns`:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns \'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 2 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Multiple invalid annotations in one file:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns \'beep\'',
+ '',
+ 'console.log( bar() );',
+ '// => \'boop\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 3 space(s).',
+ 'type': null
+ },
+ {
+ 'message': 'Return annotation keyword `=>` should be followed by 1 space. Found 3 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Two spaces before `returns`:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns \'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation `returns` should have exactly 1 space after `//`. Found 2 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// No space before `returns`:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '//returns \'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation `returns` should have exactly 1 space after `//`. Found 0 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// No space before `=>`:
+test = {
+ 'code': [
+ 'console.log( foo() );',
+ '//=> \'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation `=>` should have exactly 1 space after `//`. Found 0 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Multiple spaces before `e.g., returns`:
+test = {
+ 'code': [
+ 'var v = randn();',
+ '// e.g., returns 0.5363925252089496'
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation `e.g., returns` should have exactly 1 space after `//`. Found 3 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+// Both spacing errors (before and after):
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns \'beep\''
+ ].join( '\n' ),
+ 'errors': [
+ {
+ 'message': 'Return annotation `returns` should have exactly 1 space after `//`. Found 2 space(s).',
+ 'type': null
+ },
+ {
+ 'message': 'Return annotation keyword `returns` should be followed by 1 space. Found 2 space(s).',
+ 'type': null
+ }
+ ]
+};
+invalid.push( test );
+
+
+// EXPORTS //
+
+module.exports = invalid;
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/valid.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/valid.js
new file mode 100644
index 000000000000..e62816b06264
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/fixtures/valid.js
@@ -0,0 +1,124 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var valid = [];
+var test;
+
+// Single space after `returns`:
+test = {
+ 'code': [
+ 'var v = foo();',
+ '// returns \'beep\''
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Single space after `=>`:
+test = {
+ 'code': [
+ 'console.log( foo() );',
+ '// => \'beep\''
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Single space after `e.g., returns`:
+test = {
+ 'code': [
+ 'var v = randn();',
+ '// e.g., returns 0.5363925252089496'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Single space after `e.g., =>`:
+test = {
+ 'code': [
+ 'console.log( randn() );',
+ '// e.g., => 0.5363925252089496'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Multiple return annotations with correct spacing:
+test = {
+ 'code': [
+ 'var isLowercase = require( \'./../lib\' );',
+ '',
+ 'var bool = isLowercase( \'hello\' );',
+ '// returns true',
+ '',
+ 'bool = isLowercase( \'\' );',
+ '// returns false',
+ '',
+ 'console.log( isLowercase( \'Hello\' ) );',
+ '// => false'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Multi-line comments should be ignored (not single-line):
+test = {
+ 'code': [
+ 'var f = beep();',
+ '/* returns',
+ '{',
+ ' ...',
+ '}',
+ '*/'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Block comments with `returns` should be ignored:
+test = {
+ 'code': [
+ 'var f = beep();',
+ '/* returns \'bip\' */'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// Comments without annotations are not affected:
+test = {
+ 'code': [
+ '// This is a regular comment',
+ 'var x = 5;'
+ ].join( '\n' )
+};
+valid.push( test );
+
+// JSDoc comments are not affected:
+test = {
+ 'code': [
+ '/**',
+ '* @returns {boolean} Boolean indicating whether the input is lowercase.',
+ '*/',
+ 'function isLowercase( str ) {',
+ ' return str === str.toLowerCase();',
+ '}'
+ ].join( '\n' )
+};
+valid.push( test );
+
+
+// EXPORTS //
+
+module.exports = valid;
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/test.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/test.js
new file mode 100644
index 000000000000..e92f3cdc6c95
--- /dev/null
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest-annotation-spacing/test/test.js
@@ -0,0 +1,70 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var RuleTester = require( 'eslint' ).RuleTester;
+var rule = require( './../lib' );
+
+
+// FIXTURES //
+
+var valid = require( './fixtures/valid.js' );
+var invalid = require( './fixtures/invalid.js' );
+
+
+// TESTS //
+
+tape( 'main export is an object', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof rule, 'object', 'main export is an object' );
+ t.end();
+});
+
+tape( 'the function positively validates code with correct spacing in return annotations', function test( t ) {
+ var tester = new RuleTester();
+
+ try {
+ tester.run( 'doctest-annotation-spacing', rule, {
+ 'valid': valid,
+ 'invalid': []
+ });
+ t.pass( 'passed without errors' );
+ } catch ( err ) {
+ t.fail( 'encountered an error: ' + err.message );
+ }
+ t.end();
+});
+
+tape( 'the function negatively validates code with incorrect spacing in return annotations', function test( t ) {
+ var tester = new RuleTester();
+
+ try {
+ tester.run( 'doctest-annotation-spacing', rule, {
+ 'valid': [],
+ 'invalid': invalid
+ });
+ t.pass( 'passed without errors' );
+ } catch ( err ) {
+ t.fail( 'encountered an error: ' + err.message );
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/lib/index.js b/lib/node_modules/@stdlib/_tools/eslint/rules/lib/index.js
index 817b943efba0..c6487369352f 100644
--- a/lib/node_modules/@stdlib/_tools/eslint/rules/lib/index.js
+++ b/lib/node_modules/@stdlib/_tools/eslint/rules/lib/index.js
@@ -54,6 +54,15 @@ setReadOnly( rules, 'capitalized-comments', require( '@stdlib/_tools/eslint/rule
*/
setReadOnly( rules, 'doctest', require( '@stdlib/_tools/eslint/rules/doctest' ) );
+/**
+* @name doctest-annotation-spacing
+* @memberof rules
+* @readonly
+* @type {Function}
+* @see {@link module:@stdlib/_tools/eslint/rules/doctest-annotation-spacing}
+*/
+setReadOnly( rules, 'doctest-annotation-spacing', require( '@stdlib/_tools/eslint/rules/doctest-annotation-spacing' ) );
+
/**
* @name doctest-marker
* @memberof rules