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 @@ -107,9 +107,6 @@ function findName( scope, expected ) {
return '?';
}


// MAIN //

/**
* Rule for validating that return annotations match the actual output.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var DOPTS = {
'sloppy': true,
'unwrap': true
};
var rule;


// FUNCTIONS //
Expand All @@ -59,9 +60,6 @@ function copyLocationInfo( loc ) {
};
}


// MAIN //

/**
* Rule to enforce a specified Markdown ordered list marker style in JSDoc descriptions.
*
Expand Down Expand Up @@ -157,9 +155,9 @@ function main( context ) {
}


// EXPORTS //
// MAIN //

module.exports = {
rule = {
'meta': {
'docs': {
'description': 'enforce a specified Markdown ordered list marker style in JSDoc descriptions'
Expand All @@ -172,3 +170,8 @@ module.exports = {
},
'create': main
};


// EXPORTS //

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

// MODULES //

var doctrine = require( 'doctrine' );

Check warning on line 23 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

only the `parse` property of the required module is used; require the property directly
var copy = require( '@stdlib/utils/copy' );
var isObject = require( '@stdlib/assert/is-object' );
var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );
Expand All @@ -37,9 +37,10 @@
'unwrap': true
};
var THRESHOLD = 2; // assume that a minimal edit distance of less than or equal to one signals a typo and not an unknown type
var rule;


// MAIN //
// FUNCTIONS //

/**
* Rule for catching typos in type definitions of JSDoc tags.
Expand Down Expand Up @@ -222,9 +223,9 @@
}


// EXPORTS //
// MAIN //

module.exports = {
rule = {
'meta': {
'docs': {
'description': 'catch typos in type definitions of JSDoc tags'
Expand All @@ -243,3 +244,8 @@
},
'create': main
};


// EXPORTS //

module.exports = rule;
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
var startsWith = require( '@stdlib/string/starts-with' );


// VARIABLES //

var rule;


// FUNCTIONS //

/**
Expand All @@ -39,9 +44,6 @@ function isRelativePath( path ) {
);
}


// MAIN //

/**
* ESLint rule to enforce that the last `require` statement is a relative path.
*
Expand Down Expand Up @@ -109,9 +111,9 @@ function main( context ) {
}


// EXPORTS //
// MAIN //

module.exports = {
rule = {
'meta': {
'type': 'suggestion',
'docs': {
Expand All @@ -121,3 +123,8 @@ module.exports = {
},
'create': main
};


// EXPORTS //

module.exports = rule;
Loading