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

[DDW-595] Fix lint warnings #1352

Merged
merged 48 commits into from
Mar 25, 2019
Merged

Conversation

DeeJayElly
Copy link
Contributor

@DeeJayElly DeeJayElly commented Mar 20, 2019

This PR refactors .js codebase with suggested lint fixes so we could clean all components from lint warnings.

Todo:

  • Identify and fix broken tests
  • Finalize lint fixes for the remaining warnings
  • Retest everything

Review Checklist:

Basics

  • PR is updated to the most recent version of target branch (and there are no conflicts)
  • PR has good description that summarizes all changes and shows some screenshots or animated GIFs of important UI changes
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub
  • Automated tests: All acceptance tests are passing (yarn run test)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in development build (yarn run dev)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in production build (yarn run package / CI builds)
  • There are no flow errors or warnings (yarn run flow:test)
  • There are no lint errors or warnings (yarn run lint)
  • Text changes are proofread and approved (Jane Wild)
  • There are no missing translations (running yarn run manage:translations produces no changes)
  • UI changes look good in all themes (Alexander Rukin)
  • Storybook works and no stories are broken (yarn run storybook)
  • In case of dependency changes yarn.lock file is updated

Code Quality

  • Important parts of the code are properly documented and commented
  • Code is properly typed with flow
  • React components are split-up enough to avoid unnecessary re-rendering
  • Any code that only works in Electron is neatly separated from components

Testing

  • New feature / change is covered by acceptance tests
  • All existing acceptance tests are still up-to-date
  • New feature / change is covered by Daedalus Testing scenario
  • All existing Daedalus Testing scenarios are still up-to-date

After Review:

  • Merge PR
  • Delete source branch
  • Move ticket to done on the Youtrack board

nikolaglumac and others added 22 commits March 20, 2019 16:18
Adding fixes for es linter
Adding fixes for es linter
… into chore/ddw-595-fix-lint-warnings

# Conflicts:
#	flow/mappers/CSSModule.js.flow
Adding fixes for es linter
Adding fixes for es linter
Adding fixes for es linter
Copy link
Contributor

@nikolaglumac nikolaglumac left a comment

Choose a reason for hiding this comment

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

@DeeJayElly please add a CHANGELOG entry 🙏

@DeeJayElly
Copy link
Contributor Author

@DeeJayElly please add a CHANGELOG entry 🙏

Added

Copy link
Contributor

@nikolaglumac nikolaglumac left a comment

Choose a reason for hiding this comment

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

Great work @DeeJayElly - I have only left couple of minor comments. Thanks for fixing them!

features/support/electron.js Outdated Show resolved Hide resolved
source/main/cardano/CardanoNode.js Show resolved Hide resolved
source/main/ipc/index.js Outdated Show resolved Hide resolved
source/renderer/app/ThemeManager.js Outdated Show resolved Hide resolved
source/renderer/app/components/sidebar/Sidebar.js Outdated Show resolved Hide resolved
source/renderer/app/components/staking/StakingChart.js Outdated Show resolved Hide resolved
@@ -18,6 +18,7 @@ export const saveScreenshot = async (context, file) => {
.capturePage()
.then(imageBuffer => fs.writeFile(file, imageBuffer))
.catch(err => {
// eslint-disable-next-line
Copy link
Contributor

Choose a reason for hiding this comment

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

@DeeJayElly please add more details here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

scripts/package.js Outdated Show resolved Hide resolved
scripts/package.js Outdated Show resolved Hide resolved
Copy link
Contributor

@nikolaglumac nikolaglumac left a comment

Choose a reason for hiding this comment

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

Great work @DeeJayElly 🎉

@nikolaglumac nikolaglumac merged commit a989128 into develop Mar 25, 2019
@iohk-bors iohk-bors bot deleted the chore/ddw-595-fix-lint-warnings branch March 25, 2019 10:44
@darko-mijic darko-mijic mentioned this pull request Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants