mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
ESLint --fix: auto-fix brace-style, indent, semi, no-trailing-spaces
Run eslint --fix across src/ to clear ~1900 mechanical lint errors surfaced by the @typescript-eslint v8 + react-hooks v7 + react-compiler upgrade in the React 19 modernization PR. Issues fixed automatically: - brace-style (Allman): try/catch one-liners reformatted to multi-line - indent: tab-vs-space and depth corrections - semi: missing trailing semicolons - no-trailing-spaces No semantic changes. Remaining 701 errors are real-code issues (set-state-in-effect, rules-of-hooks, no-unsafe-* type checks) that need manual per-file review. https://claude.ai/code/session_01GrR87LAqnAEyKG2ZbmQt5Q
This commit is contained in:
@@ -20,7 +20,7 @@ export class AvatarInfoUser implements IAvatarInfo
|
||||
public prefixFont: string = '';
|
||||
public displayOrder: string = 'icon-prefix-name';
|
||||
public achievementScore: number = 0;
|
||||
public backgroundId: number = 0;
|
||||
public backgroundId: number = 0;
|
||||
public standId: number = 0;
|
||||
public overlayId: number = 0;
|
||||
public cardBackgroundId: number = 0;
|
||||
|
||||
@@ -190,7 +190,7 @@ export class AvatarInfoUtilities
|
||||
userInfo.prefixEffect = userData.prefixEffect;
|
||||
userInfo.prefixFont = userData.prefixFont;
|
||||
userInfo.displayOrder = userData.displayOrder;
|
||||
userInfo.backgroundId = userData.background;
|
||||
userInfo.backgroundId = userData.background;
|
||||
userInfo.standId = userData.stand;
|
||||
userInfo.overlayId = userData.overlay;
|
||||
userInfo.cardBackgroundId = userData.cardBackground ?? 0;
|
||||
|
||||
@@ -9,9 +9,11 @@ export class chooserSelectionVisualizer
|
||||
{
|
||||
if (this.animationFrameId !== null) return;
|
||||
|
||||
const animate = (time: number) => {
|
||||
const animate = (time: number) =>
|
||||
{
|
||||
const elapsed = time / 1000; // Convert to seconds
|
||||
this.activeFilters.forEach(filter => {
|
||||
this.activeFilters.forEach(filter =>
|
||||
{
|
||||
filter.time = elapsed; // Update time uniform
|
||||
});
|
||||
this.animationFrameId = requestAnimationFrame(animate);
|
||||
@@ -22,7 +24,8 @@ export class chooserSelectionVisualizer
|
||||
|
||||
private static stopAnimation(): void
|
||||
{
|
||||
if (this.animationFrameId !== null) {
|
||||
if (this.animationFrameId !== null)
|
||||
{
|
||||
cancelAnimationFrame(this.animationFrameId);
|
||||
this.animationFrameId = null;
|
||||
}
|
||||
@@ -69,7 +72,8 @@ export class chooserSelectionVisualizer
|
||||
sprite.filters = (sprite.filters || []).filter(f => !(f instanceof ChooserSelectionFilter));
|
||||
}
|
||||
|
||||
if (this.activeFilters.size === 0) {
|
||||
if (this.activeFilters.size === 0)
|
||||
{
|
||||
this.stopAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ export class MannequinUtilities
|
||||
figureContainer.removePart(part);
|
||||
}
|
||||
|
||||
figureContainer.updatePart((this.MANNEQUIN_FIGURE[0] as string), (this.MANNEQUIN_FIGURE[1] as number), (this.MANNEQUIN_FIGURE[2] as number[]));
|
||||
figureContainer.updatePart((this.MANNEQUIN_FIGURE[0]), (this.MANNEQUIN_FIGURE[1]), (this.MANNEQUIN_FIGURE[2]));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user