feat: Move to Biome for linting and formatting (#8997)
* init biome * lint * format * unused vars * more unused vars * error fixes * import ordering * test precommit hook * add precommit hook * [autofix.ci] apply automated fixes * remove prettier and eslint and update gh actions * pre-commit update * ✨ (Makefile): add new targets 'biome' and 'biome_check' to run biome check and format on frontend code. * 🔧 (Makefile): rename 'biome' target to 'format_frontend' for clarity and consistency 🔧 (Makefile): rename 'biome_check' target to 'format_frontend_check' for clarity and consistency * 📝 (biome.json): Update a11y rule in biome.json to turn off 'noStaticElementInteractions' warning 🔧 (apiModal/code-tabs.tsx): Remove unused 'autologin' variable in APITabsComponent ♻️ (global-variable-modal.tsx): Simplify GeneralGlobalVariableModal component by removing unused props definition * 📝 (biome.json): Remove 'debug' from allowed console methods to improve code quality 🔧 (index.tsx): Replace console.debug with console.log for better logging consistency ♻️ (index.tsx): Refactor UpdateAllComponents function signature to remove unnecessary empty object parameter * fix console rules * 📝 (biome.json): update a11y rule to warn for noStaticElementInteractions to improve accessibility compliance. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
f07f0e26b7
commit
0f89e39da1
680 changed files with 2232 additions and 2671 deletions
8
Makefile
8
Makefile
|
|
@ -177,6 +177,14 @@ format_backend: ## backend code formatters
|
|||
|
||||
format: format_backend format_frontend ## run code formatters
|
||||
|
||||
format_frontend: ## run biome check and format on frontend code
|
||||
@echo 'Running Biome check and format on frontend...'
|
||||
@cd src/frontend && npx @biomejs/biome check --write
|
||||
|
||||
format_frontend_check: ## run biome check without formatting
|
||||
@echo 'Running Biome check on frontend...'
|
||||
@cd src/frontend && npx @biomejs/biome check
|
||||
|
||||
unsafe_fix:
|
||||
@uv run ruff check . --fix --unsafe-fixes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue