Skip to content

Fix eslint warnings and update eslint #4183

Merged
0oM4R merged 27 commits intodevelopmentfrom
development_eslint
Jun 3, 2025
Merged

Fix eslint warnings and update eslint #4183
0oM4R merged 27 commits intodevelopmentfrom
development_eslint

Conversation

@0oM4R
Copy link
Copy Markdown
Contributor

@0oM4R 0oM4R commented May 29, 2025

Description

Most of the changes are done automatically using eslint --fix

Changes

update eslint rules, ignore some waringins that wont be fixed, and fix other warinngs

Related Issues

#4086

Tested Scenarios

TO BE UPDATED

Documentation PR

For UI changes, Please provide the Documentation PR on info_grid

To consider

Preliminary Checks:

  • Preliminary Checks
    • Does it completely address the issue linked?
    • What about edge cases?
    • Does it meet the specified acceptance criteria?
    • Are there any unintended side effects?
    • Does the PR adhere to the team's coding conventions, style guides, and best practices?
    • Does it integrate well with existing features?
    • Does it impact the overall performance of the application?
    • Are there any bottlenecks or slowdowns?
    • Has it been optimized for efficiency?
    • Has it been adequately tested with unit, integration, and end-to-end tests?
    • Are there any known defects or issues?
    • Is the code well-documented?
    • Are changes to documentation reflected in the code?

UI Checks:

  • UI Checks
    • If a UI design is provided/ does it follow it?
    • Does every button work?
    • Is the data displayed logical? Is it what you expected?
    • Does every validation work?
    • Does this interface feel intuitive?
    • What about slow network? Offline?
    • What if the gridproxy/graphql/chain is failing?
    • What would a first time user have a hard time navigating here?

Code Quality Checks:

  • Code Quality Checks
    • Code formatted/linted? Are there unused imports? .. etc
    • Is there redundant/repeated code?
    • Are there conditionals that are always true or always false?
    • Can we write this more concisely?
    • Can we reuse this code? If yes, where?
    • Will the changes be easy to maintain and update in the future?
    • Can this code become too complex to understand for other devs?
    • Can this code cause future integration problems?

Testing Checklist

  • Does it Meet the specified acceptance criteria.
  • Test if changes can affect any other functionality.
  • Tested with unit, integration, and end-to-end tests.
  • Tested the un-happy path and rollback scenarios.
  • Documentation updated to meet the latest changes.
  • Check automated tests working successfully with the changes.
  • Can be covered by automated tests.

General Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring
  • Screenshots/Video attached (needed for UI changes)

@amiraabouhadid
Copy link
Copy Markdown
Contributor

please update test scenarios

@0oM4R
Copy link
Copy Markdown
Contributor Author

0oM4R commented May 29, 2025

please update test scenarios

will do, please continue review

@samaradel
Copy link
Copy Markdown

When I ran yarn lint or yarn check-eslint, I got:
image

@0oM4R
Copy link
Copy Markdown
Contributor Author

0oM4R commented Jun 1, 2025

When I ran yarn lint or yarn check-eslint, I got: image

@samaradel Is there something wrong? looks like it passed successfully

@amiraabouhadid
Copy link
Copy Markdown
Contributor

please resolve merge conflicts

@amiraabouhadid
Copy link
Copy Markdown
Contributor

amiraabouhadid commented Jun 2, 2025

works
Screenshot 2025-06-02 at 13 59 06
please consider the given warning

@0oM4R
Copy link
Copy Markdown
Contributor Author

0oM4R commented Jun 2, 2025

works Screenshot 2025-06-02 at 13 59 06 please consider the given warning

as I said in the scurm this is not an ESLint warning, this warning is related to the performance and not considered as eslint warning

amiraabouhadid
amiraabouhadid previously approved these changes Jun 2, 2025
@amiraabouhadid
Copy link
Copy Markdown
Contributor

#4205

@amiraabouhadid amiraabouhadid dismissed their stale review June 2, 2025 11:29

needs more testing

Copy link
Copy Markdown
Contributor

@amiraabouhadid amiraabouhadid left a comment

Choose a reason for hiding this comment

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

contract deletion works, deployments work, listing deployment work, deleting delpoyment work , adding domain works, renting/unrenting nodes works, ssh key selection works
I see grid client tests are passing

Copy link
Copy Markdown

@samaradel samaradel left a comment

Choose a reason for hiding this comment

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

please fix the conflicts

@0oM4R
Copy link
Copy Markdown
Contributor Author

0oM4R commented Jun 3, 2025

Screenshot from 2025-06-03 16-48-16
STATS NJS WORKS

@0oM4R 0oM4R merged commit 3b9d93c into development Jun 3, 2025
3 checks passed
@0oM4R 0oM4R deleted the development_eslint branch June 3, 2025 14:19
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