Skip to content

Formatting/run formatter#32

Closed
floesche wants to merge 5 commits into
mainfrom
formatting/run_formatter
Closed

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

Conversation

@floesche

@floesche floesche commented Feb 5, 2026

Copy link
Copy Markdown
Member

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

@mbreiser mbreiser left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

@floesche

Copy link
Copy Markdown
Member Author

Retiring in favor of #110.

@floesche floesche closed this Jun 15, 2026
@floesche
floesche deleted the formatting/run_formatter branch June 15, 2026 17:24
mbreiser pushed a commit that referenced this pull request Jun 16, 2026
mbreiser added a commit that referenced this pull request Jun 16, 2026
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