Skip to content

chore: Setup pre-commit hook to format staged files in newIDE/app#8235

Merged
4ian merged 1 commit into4ian:masterfrom
malec-palec:chore/auto-format-staged-files-on-pre-commit
Feb 12, 2026
Merged

chore: Setup pre-commit hook to format staged files in newIDE/app#8235
4ian merged 1 commit into4ian:masterfrom
malec-palec:chore/auto-format-staged-files-on-pre-commit

Conversation

@malec-palec
Copy link
Copy Markdown
Contributor

@malec-palec malec-palec commented Feb 10, 2026

Adds automatic code formatting on commit using Husky and lint-staged.
Prettier now formats staged .js files in newIDE/app/src/ (except locales/) before each commit.
This keeps code style consistent and removes the need to run npm run format manually.

Note:
It's not a very conventional husky setup due to the lack of the root package.json, but it does work.

@malec-palec malec-palec marked this pull request as ready for review February 10, 2026 11:42
@malec-palec malec-palec requested a review from 4ian as a code owner February 10, 2026 11:42
@4ian
Copy link
Copy Markdown
Owner

4ian commented Feb 12, 2026

Thank you! Let's give this a try.

@4ian 4ian merged commit 3092e8a into 4ian:master Feb 12, 2026
2 of 3 checks passed
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