From 38975ef6704374d976ef81fc74567b73e8a3a57a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 12:40:57 +0000 Subject: [PATCH 1/4] docs: remove duplicate `MAIN` section header in `_tools/eslint/rules/doctest` Removed the stray `// MAIN //` header preceding `function main`, so the rule's `create` function falls under the existing `// FUNCTIONS //` section and `// MAIN //` holds only the rule object (layout used by 121/125 = 96.8% of sibling rules). Comment-only change. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HUvGDqRNYY3PQpcCrs5uBq --- .../@stdlib/_tools/eslint/rules/doctest/lib/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js index 1877ed87a3ef..3dd3b6274227 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/doctest/lib/main.js @@ -107,9 +107,6 @@ function findName( scope, expected ) { return '?'; } - -// MAIN // - /** * Rule for validating that return annotations match the actual output. * From ee242560eee410a389b486770cd7d9450b615ba4 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 12:40:57 +0000 Subject: [PATCH 2/4] refactor: assign rule object to `rule` variable in `_tools/eslint/rules/jsdoc-ordered-list-marker-style` Moved `function main` under `// FUNCTIONS //`, declared `var rule;` under `// VARIABLES //`, assigned the rule object under `// MAIN //`, and exported `rule` (layout used by 121/125 = 96.8% of sibling rules). The exported rule object is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HUvGDqRNYY3PQpcCrs5uBq --- .../jsdoc-ordered-list-marker-style/lib/main.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js index 46187bce7497..90d03545678b 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js @@ -35,6 +35,7 @@ var DOPTS = { 'sloppy': true, 'unwrap': true }; +var rule; // FUNCTIONS // @@ -59,9 +60,6 @@ function copyLocationInfo( loc ) { }; } - -// MAIN // - /** * Rule to enforce a specified Markdown ordered list marker style in JSDoc descriptions. * @@ -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' @@ -172,3 +170,8 @@ module.exports = { }, 'create': main }; + + +// EXPORTS // + +module.exports = rule; From 8281c9f1f55d4cbeebd0cafad7a96e515833e9dc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 12:40:58 +0000 Subject: [PATCH 3/4] refactor: assign rule object to `rule` variable in `_tools/eslint/rules/jsdoc-typedef-typos` Moved `function main` under `// FUNCTIONS //`, declared `var rule;` under `// VARIABLES //`, assigned the rule object under `// MAIN //`, and exported `rule` (layout used by 121/125 = 96.8% of sibling rules). The exported rule object is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HUvGDqRNYY3PQpcCrs5uBq --- .../eslint/rules/jsdoc-typedef-typos/lib/main.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/lib/main.js index 5da7a97b4892..ab907a7218bc 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/lib/main.js @@ -37,9 +37,10 @@ var OPTS = { '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. @@ -222,9 +223,9 @@ function main( context ) { } -// EXPORTS // +// MAIN // -module.exports = { +rule = { 'meta': { 'docs': { 'description': 'catch typos in type definitions of JSDoc tags' @@ -243,3 +244,8 @@ module.exports = { }, 'create': main }; + + +// EXPORTS // + +module.exports = rule; From 323ae2a4c89fe72e00f152a7c80cc7d63c0ff43f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 12:40:59 +0000 Subject: [PATCH 4/4] refactor: assign rule object to `rule` variable in `_tools/eslint/rules/require-last-path-relative` Moved `function main` under `// FUNCTIONS //`, declared `var rule;` under `// VARIABLES //`, assigned the rule object under `// MAIN //`, and exported `rule` (layout used by 121/125 = 96.8% of sibling rules). The exported rule object is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HUvGDqRNYY3PQpcCrs5uBq --- .../require-last-path-relative/lib/main.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/require-last-path-relative/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/require-last-path-relative/lib/main.js index 138d64fa6e1d..235f8d2cc1f9 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/require-last-path-relative/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/require-last-path-relative/lib/main.js @@ -23,6 +23,11 @@ var startsWith = require( '@stdlib/string/starts-with' ); +// VARIABLES // + +var rule; + + // FUNCTIONS // /** @@ -39,9 +44,6 @@ function isRelativePath( path ) { ); } - -// MAIN // - /** * ESLint rule to enforce that the last `require` statement is a relative path. * @@ -109,9 +111,9 @@ function main( context ) { } -// EXPORTS // +// MAIN // -module.exports = { +rule = { 'meta': { 'type': 'suggestion', 'docs': { @@ -121,3 +123,8 @@ module.exports = { }, 'create': main }; + + +// EXPORTS // + +module.exports = rule;