Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ESLint configuration #347

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

fredden
Copy link
Member

@fredden fredden commented Dec 21, 2021

This has been copied from magento/magento2#32343
This fixes magento/magento2#32375

The ESLint configuration currently in use was last updated four years ago. A lot has changed in the JavaScript since then. Let's update the configuration to match today's standards.

Resolved issues:

  1. resolves [Issue] Update ESLint configuration #479: Update ESLint configuration

@sivaschenko
Copy link
Member

sivaschenko commented Dec 22, 2021

@fredden we cannot deliver this update without magento2 codebase change as the whole magento2 codebase will need to comply with these rules for the static tests to pass. I'd try to deliver these changes one by one to keep failures to minimal

@fredden
Copy link
Member Author

fredden commented Dec 22, 2021

@sivaschenko Thanks for the update / confirmation. How are you getting on with step 3 from magento/magento2#32343 (comment)? This pull request is step 4. I've offered several times to do / help with step 3, and am still waiting for access to the relevant repositories. Are you able to organise for me to have access so that this can be progressed?

@fredden
Copy link
Member Author

fredden commented Dec 22, 2021

I'd try to deliver these changes one by one to keep failures to minimal

@sivaschenko I'm happy to open individual pull requests for these; shall I make a start on this, or do we need to wait for 'step 3' to be complete per above?

@sivaschenko
Copy link
Member

@fredden yes, the other approach would be to wait for step 3. I am not able to organise additional access for you, unfortunately.

@fredden
Copy link
Member Author

fredden commented Dec 22, 2021

Thanks @sivaschenko. What's the expected timeline for completion of step 3?

@sivaschenko
Copy link
Member

@fredden the step 3 is not planned at the moment

@fredden
Copy link
Member Author

fredden commented Dec 22, 2021

How can we therefore progress with this work?

@fredden
Copy link
Member Author

fredden commented Oct 14, 2022

@sivaschenko Please can you provide a status update on this? Am I allowed to help update/fix your linter yet?

fredden added a commit to fredden/magento2 that referenced this pull request Nov 22, 2022
fredden added a commit to fredden/magento2 that referenced this pull request Nov 25, 2022
@fredden fredden force-pushed the eslint branch 2 times, most recently from e5f94f5 to 92a21dc Compare September 20, 2023 16:56
The documentation for 'no-mixed-operators' states:
> This rule may conflict with no-extra-parens rule. If you use both this and
> no-extra-parens rule together, you need to use the nestedBinaryExpressions
> option of no-extra-parens rule.
@engcom-Hotel
Copy link

@magento create issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Pull Request Progress
  
Ready for Review
Development

Successfully merging this pull request may close these issues.

[Issue] Update ESLint configuration [Issue] Update ESLint configuration
4 participants