-
Notifications
You must be signed in to change notification settings - Fork 0
chore: update code style configuration with Prettier and ESLint integration #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||
| { | ||||||
| "semi": false, | ||||||
| "singleQuote": true, | ||||||
|
||||||
| "singleQuote": true, | |
| "singleQuote": false, |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| // Copyright (c) 2025 Green Wave Team | ||
| // | ||
| // This software is released under the MIT License. | ||
| // https://opensource.org/licenses/MIT | ||
|
|
||
| { | ||
| "name": "greenwave-doc", | ||
| "version": "1.0.0", | ||
|
|
@@ -17,7 +12,8 @@ | |
| "serve": "docusaurus serve", | ||
| "write-translations": "docusaurus write-translations", | ||
| "write-heading-ids": "docusaurus write-heading-ids", | ||
| "typecheck": "tsc" | ||
| "typecheck": "tsc", | ||
| "format": "prettier --write ." | ||
|
||
| }, | ||
| "dependencies": { | ||
| "@docusaurus/core": "3.9.2", | ||
|
|
@@ -32,6 +28,7 @@ | |
| "@docusaurus/module-type-aliases": "3.9.2", | ||
| "@docusaurus/tsconfig": "3.9.2", | ||
| "@docusaurus/types": "3.9.2", | ||
| "prettier": "^3.7.4", | ||
| "typescript": "~5.6.2" | ||
| }, | ||
| "browserslist": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||
| { | ||||||
| "semi": false, | ||||||
|
||||||
| "semi": false, | |
| "semi": true, |
Copilot
AI
Dec 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Prettier configuration sets "singleQuote": true, but the existing codebase uses double quotes consistently for strings and imports (e.g., import { StrictMode } from "react";). When Prettier runs, it will reformat all files to use single quotes, causing widespread changes across the codebase.
Consider changing this to "singleQuote": false to match the existing code style, or run Prettier on the entire codebase in this PR to complete the style migration.
| "singleQuote": true, | |
| "singleQuote": false, |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| // Copyright (c) 2025 Green Wave Team | ||
| // | ||
| // This software is released under the MIT License. | ||
| // https://opensource.org/licenses/MIT | ||
|
|
||
| { | ||
| "name": "frontend", | ||
| "private": true, | ||
|
|
@@ -12,7 +7,8 @@ | |
| "dev": "vite", | ||
| "build": "tsc -b && vite build", | ||
| "lint": "eslint .", | ||
| "preview": "vite preview" | ||
| "preview": "vite preview", | ||
| "format": "prettier --write ." | ||
|
||
| }, | ||
| "dependencies": { | ||
| "@maptiler/sdk": "^3.8.0", | ||
|
|
@@ -43,9 +39,11 @@ | |
| "@types/react-dom": "^19.2.2", | ||
| "@vitejs/plugin-react-swc": "^4.2.1", | ||
| "eslint": "^9.39.1", | ||
| "eslint-config-prettier": "^10.1.8", | ||
| "eslint-plugin-react-hooks": "^5.2.0", | ||
| "eslint-plugin-react-refresh": "^0.4.24", | ||
| "globals": "^16.5.0", | ||
| "prettier": "^3.7.4", | ||
| "typescript": "~5.9.3", | ||
| "typescript-eslint": "^8.46.3", | ||
| "vite": "npm:rolldown-vite@7.2.2" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Prettier configuration sets
"semi": false, but the existing codebase uses semicolons consistently. When Prettier runs, it will remove semicolons from files.Consider changing this to
"semi": trueto match the existing code style, or run Prettier on the entire codebase in this PR to complete the style migration.