Skip to content

set up eslint, prettier and husky#86

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

set up eslint, prettier and husky#86
nastyanastyaolkh-dev wants to merge 1 commit into
mate-academy:mainfrom
nastyanastyaolkh-dev:task_solution

Conversation

@nastyanastyaolkh-dev

Copy link
Copy Markdown

No description provided.

@nastyanastyaolkh-dev

Copy link
Copy Markdown
Author

eslint, prettier and husky were set up

@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

Your ESLint configuration (eslint.config.mjs) is correctly set up using the modern flat config format, and your test files follow proper Playwright syntax. However, three critical components are missing from your submission that are explicitly required by the task:

  1. Prettier configuration - No .prettierrc, prettier.config.mjs, or equivalent configuration file is present
  2. Husky setup - The .husky/pre-commit hook file is missing (or the .husky directory itself)
  3. Lint-Staged configuration - No lint-staged configuration is visible in your package.json or as a separate config file

The file comments on your test files specifically state these are required per the task requirements. Please add the missing configuration files and ensure Prettier, Husky, and Lint-Staged are properly integrated with your commit workflow. Once added, your solution should meet all the checklist requirements.


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

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

@@ -1,32 +1,32 @@
import { test } from "@playwright/test";
import { SignInPage } from "../../src/pages/SignInPage";
import { test } from '@playwright/test';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Prettier configuration file is missing. According to the task requirements, Prettier needs to be set up using instructions from the theory section.

@nastyanastyaolkh-dev nastyanastyaolkh-dev Jun 9, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The files are included in this PR. You can see .husky/pre-commit and .prettierrc in the Files changed tab. @mateacademy-ai-mentor

@@ -1,32 +1,32 @@
import { test } from "@playwright/test";
import { SignInPage } from "../../src/pages/SignInPage";
import { test } from '@playwright/test';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Husky configuration files (e.g., .husky directory with pre-commit hook) are missing. According to the task requirements, Husky needs to be set up using instructions from the theory section.

@nastyanastyaolkh-dev nastyanastyaolkh-dev Jun 9, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The files are included in this PR. You can see .husky/pre-commit and .prettierrc in the Files changed tab. @mateacademy-ai-mentor

Comment thread tests/signIn/signInNegative.spec.js
Comment thread tests/signIn/signInPositive.spec.js
Comment thread tests/signIn/signInPositive.spec.js
Comment thread tests/signIn/signInPositive.spec.js

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@iBrianWarner iBrianWarner 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.

good job!

Comment thread src/pages/HomePage.js

async assertYourFeedTabIsVisible() {
await expect(this.yourFeedTab).toBeVisible();
await expect(this.yourFeedTab).toBeVisible({ timeout: 10000 });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is it required? better to set up one value in config

Comment thread package-lock.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

better do not commit package-lock files

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.

3 participants