Skip to content

Commit 8a2aa92

Browse files
obiotclaude
andcommitted
Fix Biome 2.4 lint errors: useTemplate, noExplicitAny, organizeImports
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a1e2ccf commit 8a2aa92

3 files changed

Lines changed: 63 additions & 58 deletions

File tree

packages/examples/src/examples/blendModes/ExampleBlendModes.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const createGame = () => {
4040
}
4141

4242
// detect which modes are actually supported by probing setBlendMode
43+
// biome-ignore lint/suspicious/noExplicitAny: renderer type varies between WebGL/Canvas
4344
const renderer = video.renderer as any;
4445
const supported: Record<string, boolean> = {};
4546
for (const mode of BLEND_MODES) {
@@ -55,6 +56,7 @@ const createGame = () => {
5556
this.anchorPoint.set(0, 0);
5657
}
5758

59+
// biome-ignore lint/suspicious/noExplicitAny: renderer type varies between WebGL/Canvas
5860
override draw(renderer: any) {
5961
// dark background
6062
renderer.setBlendMode("normal");
@@ -105,7 +107,7 @@ const createGame = () => {
105107
size: 16,
106108
fillStyle: "#aaaaaa",
107109
textAlign: "center",
108-
text: renderer.type + " Supported Blend Modes",
110+
text: `${renderer.type} Supported Blend Modes`,
109111
});
110112
header.anchorPoint.set(0, 0);
111113
header.floating = true;

packages/examples/src/examples/platformer/entities/minimap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class MinimapCamera extends Camera2d {
3737
/**
3838
* Draw minimap overlays: viewport highlight, player marker, and border.
3939
*/
40+
// biome-ignore lint/suspicious/noExplicitAny: renderer type varies between WebGL/Canvas
4041
override postDraw(renderer: any): void {
4142
const viewport = game.viewport;
4243
const screenPx = 1 / this.zoom; // 1 screen pixel in world units

packages/melonjs/src/index.js

Lines changed: 59 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -71,95 +71,97 @@ export * from "./application/scaleMethods.ts";
7171
export * from "./application/settings.ts";
7272
// export all utility function
7373
export * as audio from "./audio/audio.ts";
74-
export * as input from "./input/input.ts";
75-
export { level } from "./level/level.js";
76-
export * as loader from "./loader/loader.js";
77-
export * as math from "./math/math.ts";
78-
export { collision } from "./physics/collision.js";
79-
export * as plugin from "./plugin/plugin.ts";
80-
export * as device from "./system/device.js";
81-
export * as event from "./system/event.ts";
82-
export * as utils from "./utils/utils.ts";
83-
export * from "./version.ts";
84-
export * as video from "./video/video.js";
85-
export { plugins, save, timer, pool, state };
74+
// export all public constants
75+
export * from "./const.ts";
8676
export { Ellipse } from "./geometries/ellipse.ts";
8777
export { Line } from "./geometries/line.ts";
8878
export { ObservablePoint } from "./geometries/observablePoint.ts";
8979
export { Point } from "./geometries/point.ts";
9080
export { Polygon } from "./geometries/polygon.ts";
9181
export { Rect } from "./geometries/rectangle.ts";
9282
export { RoundRect } from "./geometries/roundrect.ts";
83+
export * as input from "./input/input.ts";
84+
// Backward compatibility for deprecated method or properties
85+
export * from "./lang/deprecated.js";
86+
export { level } from "./level/level.js";
87+
export * as loader from "./loader/loader.js";
9388
export { Color } from "./math/color.ts";
89+
export * as math from "./math/math.ts";
9490
export { Matrix2d } from "./math/matrix2d.ts";
9591
export { Matrix3d } from "./math/matrix3d.ts";
9692
export { ObservableVector2d } from "./math/observableVector2d.ts";
9793
export { ObservableVector3d } from "./math/observableVector3d.ts";
9894
export { Vector2d } from "./math/vector2d.ts";
9995
export { Vector3d } from "./math/vector3d.ts";
10096
export { Bounds } from "./physics/bounds.ts";
97+
export { collision } from "./physics/collision.js";
98+
export * as plugin from "./plugin/plugin.ts";
10199
export { getPool } from "./pool.ts";
102-
100+
export * as device from "./system/device.js";
101+
export * as event from "./system/event.ts";
102+
export * as utils from "./utils/utils.ts";
103+
export * from "./version.ts";
104+
export * as video from "./video/video.js";
103105
// export all class definition
104106
export {
105-
Tween,
106-
QuadTree,
107-
GLShader,
108-
ShaderEffect,
107+
Application,
109108
Batcher,
110-
PrimitiveBatcher,
111-
QuadBatcher,
112-
Renderer,
113-
RenderState,
114-
WebGLRenderer,
115-
CanvasRenderer,
116-
CanvasRenderTarget,
117-
TextureAtlas,
118-
Renderable,
119-
Body,
120-
Text,
121109
BitmapText,
122110
BitmapTextData,
123-
ColorLayer,
124-
ImageLayer,
125-
Sprite,
126-
NineSliceSprite,
127-
UIBaseElement,
128-
UITextButton,
129-
UISpriteElement,
111+
Body,
112+
Camera2d,
113+
CanvasRenderer,
114+
CanvasRenderTarget,
130115
Collectable,
131-
Trigger,
132-
Light2d,
116+
ColorLayer,
117+
Container,
133118
Draggable,
134119
DropTarget,
135-
TMXRenderer,
136-
TMXOrthogonalRenderer,
137-
TMXIsometricRenderer,
120+
Entity,
121+
GLShader,
122+
ImageLayer,
123+
Light2d,
124+
NineSliceSprite,
125+
Particle,
126+
ParticleEmitter,
127+
ParticleEmitterSettings,
128+
Pointer,
129+
PrimitiveBatcher,
130+
plugins,
131+
pool,
132+
QuadBatcher,
133+
QuadTree,
134+
Renderable,
135+
Renderer,
136+
RenderState,
137+
ShaderEffect,
138+
Sprite,
139+
Stage,
140+
save,
141+
state,
142+
Text,
143+
TextureAtlas,
144+
Tile,
138145
TMXHexagonalRenderer,
146+
TMXIsometricRenderer,
147+
TMXLayer,
148+
TMXOrthogonalRenderer,
149+
TMXRenderer,
139150
TMXStaggeredRenderer,
140-
Tile,
151+
TMXTileMap,
141152
TMXTileset,
142153
TMXTilesetGroup,
143-
TMXTileMap,
144-
TMXLayer,
145154
TMXUtils,
146-
Pointer,
147-
Stage,
148-
Camera2d,
149-
Container,
155+
Trigger,
156+
Tween,
157+
timer,
158+
UIBaseElement,
159+
UISpriteElement,
160+
UITextButton,
161+
WebGLRenderer,
150162
World,
151-
ParticleEmitter,
152-
ParticleEmitterSettings,
153-
Particle,
154-
Entity,
155-
Application,
156163
};
157164

158-
// export all public constants
159-
export * from "./const.ts";
160-
// Backward compatibility for deprecated method or properties
161-
export * from "./lang/deprecated.js";
162-
163165
/**
164166
* a flag indicating that melonJS is fully initialized
165167
* @type {boolean}

0 commit comments

Comments
 (0)