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

Code Cleanup: Enforce Linting Rules & Update UNSAFE_ React Lifecycle Events #559

Merged
merged 33 commits into from Jun 4, 2020

Conversation

@IAmThePan
Copy link
Contributor

@IAmThePan IAmThePan commented May 26, 2020

  • Have you followed the guidelines in CONTRIBUTING.md?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you added an explanation of what your changes do?
  • Does your submission pass tests?
  • Did you lint your code prior to submission?

From Jira Cleanup Ticket (that I don't have access to):

  • Clean up eslintrc.js:
    • In eslintrc.js, enable any checks marked with TODOs and fix associated code warnings.
    • Additionally remove template-curly-spacing and enable class-methods-use-this, no-mixed-operators, import/prefer-default-export.
  • In React components, search for any life-cycle events marked with UNSAFE_ and refactor to use new React events.
IAmThePan added 29 commits Apr 29, 2020
… Add /tools and /tests to linter. Update height in UpgradeBanner
…esolve removing iterator loops for urlSearchParams
…ntDidMount, leave notes for how decision was made.
…tDerivedStateFromProps
@IAmThePan IAmThePan requested a review from christophertino as a code owner May 26, 2020
@IAmThePan IAmThePan requested review from Eden12345, jsignanini, wlycdgr, zarembsky and ghostery/ghostery as code owners May 26, 2020
@IAmThePan IAmThePan mentioned this pull request May 26, 2020
5 of 5 tasks complete
@christophertino christophertino merged commit 3de53c2 into ghostery:develop Jun 4, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@christophertino christophertino added this to the 8.5.2 milestone Jun 4, 2020
Copy link
Member

@christophertino christophertino left a comment

Reviewed first 70 files. @IAmThePan just a few things we can remove from .eslintrc.js

.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
Copy link
Member

@wlycdgr wlycdgr left a comment

Left a few comments/questions on files 70-140

@IAmThePan IAmThePan deleted the IAmThePan:feature/cleanup branch Jun 6, 2020
@IAmThePan IAmThePan restored the IAmThePan:feature/cleanup branch Jun 11, 2020
@IAmThePan
Copy link
Contributor Author

@IAmThePan IAmThePan commented Jun 11, 2020

I restored the IAmThePan:feature/cleanup branch hoping that it would track the updates I made to address the comments. It didn't so you can see the changes on IAmThePan:feature/cleanup-cleanup which also has a PR: #566

app/panel/reducers/panel.js Show resolved Hide resolved
app/panel/reducers/panel.js Show resolved Hide resolved
app/panel/reducers/settings.js Show resolved Hide resolved
app/panel/reducers/settings.js Show resolved Hide resolved
app/scss/partials/_upgrade_banner.scss Show resolved Hide resolved
src/background.js Show resolved Hide resolved
src/classes/Account.js Show resolved Hide resolved
src/classes/Account.js Show resolved Hide resolved
src/classes/Account.js Show resolved Hide resolved
src/classes/BugDb.js Show resolved Hide resolved
src/classes/FoundBugs.js Show resolved Hide resolved
src/classes/FoundBugs.js Show resolved Hide resolved
src/classes/Module.js Show resolved Hide resolved
src/classes/PromoModals.js Show resolved Hide resolved
src/classes/SurrogateDb.js Show resolved Hide resolved
src/utils/utils.js Show resolved Hide resolved
@IAmThePan
Copy link
Contributor Author

@IAmThePan IAmThePan commented Jun 12, 2020

I addressed all outstanding comments and pushed my code changes to the feature/cleanup-cleanup branch and PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants