Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Parent Issue
#31059
Proposed Changes
This pull request focuses on improving code consistency and style by introducing ESLint and Prettier configurations, and updating the codebase to follow these standards. Additionally, it includes various minor refactors to enhance readability and maintainability.
ESLint and Prettier Integration:
e2e/dotcms-e2e-node/frontend/eslint.config.mjs
: Added ESLint and Prettier configurations to enforce coding standards.e2e/dotcms-e2e-node/frontend/package.json
: Updated dependencies to include ESLint, Prettier, and related plugins. Added new scripts for formatting and linting the code. [1] [2]e2e/dotcms-e2e-node/frontend/prettier-config.json
: Added Prettier configuration file to define code formatting rules.Code Consistency and Style Improvements:
e2e/dotcms-e2e-node/frontend/index.js
: Updated all string literals to use double quotes for consistency.e2e/dotcms-e2e-node/frontend/locators/globalLocators.ts
: Formatted object properties and added trailing commas for consistency.e2e/dotcms-e2e-node/frontend/locators/navigation/menuLocators.ts
: Formatted code to improve readability and maintain consistent string quoting. [1] [2] [3]Refactoring and Cleanup:
e2e/dotcms-e2e-node/frontend/playwright.config.ts
: Refactored configuration file to use consistent string literals and improved readability. [1] [2] [3] [4]e2e/dotcms-e2e-node/frontend/tests/contentSearch/contentData.ts
: Cleaned up and formatted content data file for better readability. [1] [2] [3]e2e/dotcms-e2e-node/frontend/tests/contentSearch/contentEditing.spec.ts
: Refactored test file to improve readability and maintain consistent string quoting. [1] [2]Checklist
This PR fixes: #31033