Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6248 Improvement: Set foundation to improve migrate-to-typescript efficiency #6249

Conversation

tylers-username
Copy link
Contributor

Changes
Resolves #6248.

  • Adds typescript and webpack aliases
  • Configures eslint to understand the aliases
  • Refactors src/index.jsx to src/index.tsx and declares webSettings.d.ts and another modeule to serve as an example of how the migration to typescript can be done iteratively

Issues

@tylers-username tylers-username requested a review from a team as a code owner October 24, 2024 12:49
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Oct 24, 2024

Cloudflare Pages deployment

Latest commit 1bce97d
Status ✅ Deployed!
Preview URL https://7d82088d.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/global.d.ts Outdated Show resolved Hide resolved
src/types/assets.d.ts Outdated Show resolved Hide resolved
src/types/window.d.ts Outdated Show resolved Hide resolved
Copy link

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/index.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@jellyfin-bot
Copy link
Collaborator

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Jan 11, 2025
@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Jan 12, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

/**
* Class that manages the queue of SyncPlay.
*/
class QueueCore {
private manager: null | Manager;
private lastPlayQueueUpdate: null | ApiClientPlayMessageData;
private playlist: any[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any

Suggestion(s) available:

Suggested change
private playlist: any[];
private playlist: unknown[];
Suggested change
private playlist: any[];
private playlist: never[];

return Helper.translateItemsForPlayback(apiClient, result.Items, {
ids: itemIds,
serverId: serverId
}).then((items) => {
}).then((items: any[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any

Suggestion(s) available:

Suggested change
}).then((items: any[]) => {
}).then((items: unknown[]) => {
Suggested change
}).then((items: any[]) => {
}).then((items: never[]) => {


/**
* Class that manages the SyncPlay group selection menu.
*/
class GroupSelectionMenu {
private syncPlayEnabled: boolean;
private SyncPlay: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any

Suggestion(s) available:

Suggested change
private SyncPlay: any;
private SyncPlay: unknown;
Suggested change
private SyncPlay: any;
private SyncPlay: never;

zzdovydas and others added 24 commits January 11, 2025 21:33
* stylelint-codeguide v1.0.2
* stylelint-scss v6.10.0
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

@tylers-username
Copy link
Contributor Author

Ran into rebasing issues after a bad merge. Re-opened with a clean branch here: #6440

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.

Improvement: Set foundation to improve migrate-to-typescript efficiency