diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0ce60af0f..a0dd5eb40 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -430,14 +430,12 @@ npx prettier --write src/your-file.vue #### Prettier Configuration -RUXAILAB uses Prettier for consistent code formatting. While there's no `.prettierrc` file, Prettier uses sensible defaults: - -- **Print Width**: 80 characters -- **Tabs**: 2 spaces (no tabs) -- **Quotes**: Double quotes for strings -- **Semicolons**: Enabled -- **Trailing Commas**: ES5 style (where valid in older JS) -- **Arrow Functions**: Always add parentheses around parameters +RUXAILAB uses Prettier for consistent code formatting. The configuration is defined in the `.prettierrc` file at the project root: + +- **Quotes**: Single quotes for strings (`singleQuote: true`) +- **Trailing Commas**: All trailing commas (`trailingComma: "all"`) +- **Semicolons**: Disabled (`semi: false`) +- **Arrow Functions**: Always add parentheses around parameters (`arrowParens: "always"`) #### ESLint Configuration diff --git a/README.md b/README.md index 77bd5121c..98e8d6ab6 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ Then get the url, go to the .env file and add the following sentence: VUE_APP_FIREBASE_PYTHON_FUNCTION = 'url' ``` -If you want to deply the fuction, change your account from spark to blaze, run: +If you want to deploy the function, change your account from spark to blaze, run: ```bash firebase deploy --only functions