Skip to content

Formatting/run formatter#32

Open
floesche wants to merge 5 commits intomainfrom
formatting/run_formatter
Open

Formatting/run formatter#32
floesche wants to merge 5 commits intomainfrom
formatting/run_formatter

Conversation

@floesche
Copy link
Member

@floesche floesche commented Feb 5, 2026

This PR ran the prettier formatter on the JS files. If you choose to accept #30, this could make it easier to track changes later.

To make future JS changes easier to follow, here I run the prettier
tool with the .prettierrc that were introduced  in #30. Ignore this if
you choose to ignore #30.
@floesche floesche requested a review from mbreiser February 5, 2026 05:13
Copy link
Contributor

@mbreiser mbreiser left a comment

Choose a reason for hiding this comment

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

CI passes, looks good. PR #30 (Prettier config) is already merged so this is ready to go.

One consideration: we're about to make changes to pattern_editor.html and js/three-viewer.js for issue #29. Merging this formatting PR before or after that work will create merge conflicts either way, so we may want to coordinate timing.

> prettier --write "**/*.js"

js/arena-calculations.js 41ms (unchanged)
js/arena-configs.js 20ms (unchanged)
js/arena-geometry.js 24ms (unchanged)
js/g6-encoding.js 18ms (unchanged)
js/gif.worker.js 62ms (unchanged)
js/icon-generator.js 37ms (unchanged)
js/pat-encoder.js 30ms (unchanged)
js/pat-parser.js 29ms (unchanged)
js/pattern-editor/tools/combiner.js 8ms (unchanged)
js/pattern-editor/tools/generator.js 28ms (unchanged)
js/pattern-editor/tools/image-converter.js 13ms (unchanged)
js/pattern-editor/viewers/three-viewer.js 35ms (unchanged)
scripts/generate-arena-configs.js 9ms (unchanged)
test_patparser_node.js 4ms (unchanged)
tests/generate-roundtrip-patterns.js 12ms (unchanged)
tests/validate-arena-calculations.js 5ms (unchanged)
tests/validate-arena-geometry.js 11ms (unchanged)
tests/validate-comprehensive-reference.js 6ms (unchanged)
tests/validate-g6-encoding.js 9ms (unchanged)
tests/validate-header-v2.js 11ms (unchanged)
tests/validate-matlab-reference.js 9ms (unchanged)
tests/validate-pattern-generation.js 13ms (unchanged)
tests/validate-spherical-grating.js 11ms (unchanged) on new scripts
@floesche
Copy link
Member Author

I ran prettier on the new scripts from main as well. The earlier this PR gets into main, the fewer changes there will be in future commits.

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