Skip to content

chore: move formatting to root level#10128

Merged
lizschwab merged 2 commits into
RaspberryPiFoundation:mainfrom
lizschwab:7761
Jul 10, 2026
Merged

chore: move formatting to root level#10128
lizschwab merged 2 commits into
RaspberryPiFoundation:mainfrom
lizschwab:7761

Conversation

@lizschwab

Copy link
Copy Markdown
Contributor

The basics

The details

Resolves

Fixes #7761

Proposed Changes

This change moves the following to the root level:

  • prettier config & ignore
  • gitignore
  • format cli commands

Reason for Changes

This change helps to get the workspace ready for moving the plugins over to the monorepo.

Test Coverage

No test coverage. I validated my changes by inserting formatting errors in the core and docs workspaces and ensuring prettier still catches them and doesn't catch anything it shouldn't.

Before my changes:
Screenshot 2026-07-09 at 4 39 28 PM

After my changes:
Screenshot 2026-07-10 at 1 36 17 PM

@lizschwab lizschwab requested a review from a team as a code owner July 10, 2026 21:13
@lizschwab lizschwab requested a review from gonfunko July 10, 2026 21:13
@github-actions github-actions Bot added the PR: chore General chores (dependencies, typos, etc) label Jul 10, 2026
@lizschwab lizschwab marked this pull request as draft July 10, 2026 21:19
@lizschwab lizschwab marked this pull request as ready for review July 10, 2026 21:49
Comment thread .prettierignore
Comment on lines +8 to +33
packages/blockly/msg/*
packages/blockly/build/*
packages/blockly/dist/*
packages/blockly/typings/*
packages/blockly/docs/*

# Core: Tests other than mocha unit tests
packages/blockly/tests/blocks/*
packages/blockly/tests/themes/*
packages/blockly/tests/compile/*
packages/blockly/tests/jsunit/*
packages/blockly/tests/generators/*
packages/blockly/tests/mocha/webdriver.js
packages/blockly/tests/screenshot/*
packages/blockly/tests/test_runner.js
packages/blockly/tests/workspace_svg/*

# Core: Demos, scripts, misc
packages/blockly/node_modules/*
packages/blockly/demos/*
packages/blockly/appengine/*
packages/blockly/externs/*
packages/blockly/closure/*
packages/blockly/scripts/gulpfiles/*
packages/blockly/CHANGELOG.md
packages/blockly/PULL_REQUEST_TEMPLATE.md

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.

I realize these were copied from the old config file, but a variety of these no longer exist (in particular closure, externs, tests/blocks, tests/jsunit, tests/screenshot, tests/workspace_svg, and possibly others?) Optional, but would be nice to clean this up and remove them (and anything else obsolete in other config files)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I always like an opportunity to remove cruft! I'll compare these to the directories and remove anything that's no longer present.

Comment thread .prettierignore
packages/blockly/PULL_REQUEST_TEMPLATE.md

# Core: Don't bother formatting JavaScript files we're about to migrate:
packages/blockly/generators/**/*.js

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.

This migration is done, and this rule can also be removed.

@lizschwab lizschwab merged commit 72958e7 into RaspberryPiFoundation:main Jul 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: chore General chores (dependencies, typos, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up formatting

2 participants