chore: fix JavaScript lint errors (issue #12359) - #15314
Open
SIDDARTHAREDDY8 wants to merge 1 commit into
Open
SIDDARTHAREDDY8 wants to merge 1 commit into
SIDDARTHAREDDY8 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #12359.
Description
This pull request:
stdlib/require-last-path-relativeat23:18inlib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js("Lastrequirestatement in example files must be a relative path").tryRequire( resolve( __dirname, '..', 'lib' ) )loading pattern with a direct relativerequire( './../lib' )as the lastrequirestatement, matching the convention used by the other pure-JavaScript tool examples (e.g.,evalpoly). The package is pure JavaScript, so the graceful-degradation branch for unsupported environments was dead code.Related Issues
This pull request has the following related issues:
Questions
No.
Other
Verification performed:
require-last-path-relativerule implementation (23:18 error); after the fix the rule reports no errors.node --checkpasses on the modified file.libsources via the new relative require: it prints a compiled polynomial module, and the generated module was numerically validated against a direct Horner evaluation.No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was developed with AI assistance (Muse). I used it to locate the rule implementation, reproduce the lint failure locally, draft the minimal fix consistent with repo conventions, and build the verification harness; I reviewed the final diff before submission.
@stdlib-js/reviewers