Skip to content

Configure ESLint, Prettier and Husky#88

Open
SvitlanaFd wants to merge 1 commit into
mate-academy:mainfrom
SvitlanaFd:task_solution
Open

Configure ESLint, Prettier and Husky#88
SvitlanaFd wants to merge 1 commit into
mate-academy:mainfrom
SvitlanaFd:task_solution

Conversation

@SvitlanaFd

Copy link
Copy Markdown

Set Up Automatic Code Checks for a Conduit Project

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

The implementation successfully meets the core requirements: ESLint is configured using the flat config format with the Playwright plugin integration, all Page Object classes follow correct patterns, and the Playwright tests are well-structured with proper selectors and assertions. The ESLint configuration placement concern noted for src/pages/SignUpPage.js appears to be a misattributed comment, as Page Object files don't contain ESLint configuration. The actual eslint.config.mjs file was reviewed separately and confirmed to have the eslint-config-prettier correctly integrated. The test files demonstrate solid Playwright practices with appropriate use of page objects, faker for dynamic test data, and complete test flows for both positive and negative scenarios. Your implementation is ready for use.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Comment thread src/pages/SignUpPage.js
this.emailField = page.getByPlaceholder('Email');
this.passwordField = page.getByPlaceholder('Password');
this.signUpButton = page.getByRole('button', { name: 'Sign up' });
this.errorMessage = page.getByRole('list').nth(1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The eslint-config-prettier is placed at index 1 (line 10), before the rules object where other ESLint rules are defined. For ESLint's flat config, eslint-config-prettier should be placed LAST in the exports array to properly disable all formatting rules that conflict with Prettier. Consider moving it to the end of the array.

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