FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix lint issues in the packages by DonOmalVindula · Pull Request #361 · asgardeo/javascript · GitHub

Fix lint issues in the packages - #361

Merged
DonOmalVindula merged 4 commits into
asgardeo:mainfrom
DonOmalVindula:fix/javascript-lint
Feb 16, 2026
Merged

Fix lint issues in the packages#361
DonOmalVindula merged 4 commits into
asgardeo:mainfrom
DonOmalVindula:fix/javascript-lint

Conversation

DonOmalVindula commented Feb 12, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Purpose

This pull request primarily addresses linting issues across the @asgardeo/browser package and related packages, introduces improved logging practices, and applies various TypeScript and code quality enhancements. The changes aim to standardize logging, improve type safety, and clean up code to align with best practices.

Key changes include:

Linting and Dependency Updates

  • Added a changeset and updated dependencies to address and prevent lint issues in multiple packages, including updating TypeScript ESLint dependencies in package.json. [1] [2]
  • Updated .eslintignore to exclude the src/__legacy__ directory from linting in the browser package.

Logging Improvements

  • Replaced direct console.warn calls with a standardized logger using createPackageComponentLogger in themeDetection.ts, handleWebAuthnAuthentication.ts, and the legacy SPA client, improving consistency and traceability of warnings. [1] [2] [3] [4] F54f47b5L54R48, [5]

TypeScript and Code Quality Enhancements

  • Added explicit type annotations and improved type safety in test files and utility functions, such as in navigate.test.ts and handleWebAuthnAuthentication.ts. [1] [2] [3]
  • Improved the decorator pattern in helpers/decorators.ts by returning the constructor, removing unnecessary ESLint disables.
  • Added ESLint disable comments to prevent cyclic import warnings in main entry points.

Build and Configuration Adjustments

  • Refactored and reordered configuration in esbuild.config.mjs for better readability and maintainability, and improved plugin usage for bundling.

Minor Code Cleanups

  • Refactored destructuring and type usage for clarity and consistency in several files, such as using destructured classList and adding missing type annotations. [1] [2] [3] [4] [5]

These changes collectively improve code quality, maintainability, and developer experience across the affected packages.

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

DonOmalVindula force-pushed the fix/javascript-lint branch 8 times, most recently from 5813d08 to c060e3d Compare February 13, 2026 05:47

Copy link
Copy Markdown

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

DonOmalVindula merged commit b07d7e6 into asgardeo:main Feb 16, 2026
8 checks passed
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL