Skip to content

Conversation

s-rigaud
Copy link
Contributor

Description

I figured out from reading PRs or making one that some eslint rules might be added to the project to improve code quality.

As the core developers will be mainly impacted by the rule changes, you are in a better spot to judge what rules should be added or not. This PR is just a small suggestion.

I updated the code with new rules to get a preview of the changes (there is no error left).

Copy link

github-actions bot commented Nov 27, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.14
78.99
339.14
78.99
+0 B
+0 B
WebGPU 484.69
134.48
484.69
134.48
+0 B
+0 B
WebGPU Nodes 484.15
134.38
484.15
134.38
+0 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 464.61
111.98
464.61
111.98
+0 B
+0 B
WebGPU 553.43
149.79
553.43
149.79
+0 B
+0 B
WebGPU Nodes 509.31
139.5
509.31
139.5
+0 B
+0 B

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 29, 2024

Do you mind resolving the merge conflicts?

@s-rigaud s-rigaud force-pushed the improve-eslint-config branch from 93b3b94 to 7269412 Compare November 29, 2024 17:32
@Mugen87 Mugen87 merged commit 3e54130 into mrdoob:dev Nov 29, 2024
12 checks passed
cmhhelgeson pushed a commit to cmhhelgeson/three.js that referenced this pull request Dec 5, 2024
* Eslint: Improve config

* Only keep import merging

---------

Co-authored-by: Samuel Rigaud <[email protected]>
@s-rigaud s-rigaud deleted the improve-eslint-config branch December 11, 2024 14:24
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.

2 participants