Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ function findName( scope, expected ) {
return '?';
}


// MAIN //

/**
* Rule for validating that return annotations in example code match the actual output.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@

'use strict';

// MODULES //

var rule = require( './main.js' );


// MAIN //

/**
* ESLint rule to enforce empty lines between `require` statements and code in JSDoc examples.
*
Expand All @@ -40,6 +33,11 @@ var rule = require( './main.js' );
* };
*/

// MODULES //

var main = require( './main.js' );


// EXPORTS //

module.exports = rule;
module.exports = main;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var parseJSDoc = require( 'doctrine' ).parse;
var trim = require( '@stdlib/string/base/trim' );
var reEOL = require( '@stdlib/regexp/eol' );

Check warning on line 25 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-example-require-spacing/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

only the `REGEXP` property of the required module is used; require the property directly
var isObject = require( '@stdlib/assert/is-object' );
var isEmptyArray = require( '@stdlib/assert/is-empty-array' );
var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
Expand Down Expand Up @@ -62,9 +62,6 @@
return trim( line ) === '';
}


// MAIN //

/**
* Rule to enforce empty lines between `require` statements and code in JSDoc examples.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var replace = require( '@stdlib/string/replace' );
var reEOL = require( '@stdlib/regexp/eol' );

Check warning on line 24 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-no-space-aligned-asterisks/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

only the `REGEXP` property of the required module is used; require the property directly


// VARIABLES //
Expand All @@ -30,7 +30,7 @@
var rule;


// MAIN //
// FUNCTIONS //

/**
* Rule for validating that JSDoc comments do not have space-aligned asterisks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var rule;
* @param {Object} context - ESLint context
* @returns {Object} validators
*/
function create( context ) {
function main( context ) {
/**
* Reports the error message.
*
Expand Down Expand Up @@ -108,7 +108,7 @@ rule = {
'fixable': 'whitespace',
'schema': []
},
'create': create
'create': main
};


Expand Down
Loading