From 5388b69496a1d9fd9f58ef43d60123a09af39800 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 14:08:07 +0000 Subject: [PATCH] style: fix lint errors in `wasm/module-wrapper` and `stats/kde2d` The `lint_random_files` workflow failed on develop with `n/no-unsupported-features/node-builtins` errors for `WebAssembly` in `wasm/module-wrapper/lib/main.js` and a `stdlib/line-closing-bracket-spacing` error in `stats/kde2d/lib/main.js`. The `WebAssembly` uses are intentional and guarded by a feature check, so this commit adds the rule to the file-level `eslint-disable` directive. It also removes the space between `}` and `)` in the `ndarray` call in `kde2d`. Ref: https://github.com/stdlib-js/stdlib/actions/runs/41549745345 Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_017wWD77pJkCuf6ZMu1MPXBK --- lib/node_modules/@stdlib/stats/kde2d/lib/main.js | 2 +- lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/kde2d/lib/main.js b/lib/node_modules/@stdlib/stats/kde2d/lib/main.js index 55ed8f3f8f5e..024f9df98d13 100644 --- a/lib/node_modules/@stdlib/stats/kde2d/lib/main.js +++ b/lib/node_modules/@stdlib/stats/kde2d/lib/main.js @@ -147,7 +147,7 @@ function kde2d() { // Create the `ndarray` to hold the density values: z = ndarray({ 'shape': [ n, n ] - } ); + }); // Make the grid: gridX = linspace( xMin, xMax, n ); diff --git a/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js b/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js index 0acbc7bde27a..33b0d3f1799e 100644 --- a/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js +++ b/lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js @@ -16,7 +16,7 @@ * limitations under the License. */ -/* eslint-disable no-restricted-syntax, no-invalid-this, no-underscore-dangle */ +/* eslint-disable no-restricted-syntax, no-invalid-this, no-underscore-dangle, n/no-unsupported-features/node-builtins */ 'use strict';