openedx / wg-frontend

Open edX Frontend Working Group
4 stars 1 forks source link

[Discovery] Feasibility of applying amnesty on the existing eslint warnings #131

Open UsamaSadiq opened 2 years ago

UsamaSadiq commented 2 years ago

Description

All the pylint violations in edx-platform have been suppressed using lint-amnesty. Now the next target is to apply amnesty on the eslint warnings and remove its threshold.

Acceptance Criteria

Initial Research on the Issue

arbrandes commented 1 year ago

@Mashal-m, my instincts says to go with suppress-eslint-errors, but... wow, that's going to be a lot of PRs. Can we at least have one single refactor: PR per repository?

@adamstankiewicz, I'm curious what your take would be on this one.

arbrandes commented 1 year ago

@abdullahwaheed, can we get a status update, here? Thanks!

abdullahwaheed commented 1 year ago

@arbrandes we were focusing on removing legacy code from platform first so we can focus on remaining warnings

Mashal-m commented 1 year ago

@UsamaSadiq after merging this PR Migrate eslint-config-edx the eslint report is zero.

UsamaSadiq commented 1 year ago

The warning report shouldn't be affected this much with package migration. To investigate the warning report accuracy, I can think of following two methods:

FYI @abdullahwaheed @Mashal-m

arbrandes commented 1 year ago

Can I get a status update here? Thanks!

Syed-Ali-Abbas-Zaidi commented 1 year ago

Hi @arbrandes, After conducting RnD on this issue, we have discovered that eslint-config-edx was not migrated correctly in that particular pull request (PR). Consequently, we have divided this task into three steps:

  1. Rectify the migration issue of eslint-config-edx.
  2. Resolve all eslint issues that can be automatically fixed.
  3. Apply amnesty to all existing issues that cannot be automatically fixed.

We have completed steps 1 and 2. Step 3 is currently in progress, and the PRs associated with it are under review. Once the reviews are completed, we will be ready to deploy them as well.

arbrandes commented 8 months ago

@Syed-Ali-Abbas-Zaidi, just checking: are we still going to pursue this?

abdullahwaheed commented 8 months ago

@Syed-Ali-Abbas-Zaidi, just checking: are we still going to pursue this?

@arbrandes we will resume this after edx-platform frontend upgrade to latest versions