Skip to content

Add static code analysis#1970

Merged
compulim merged 30 commits intomicrosoft:masterfrom
compulim:feat-eslint
May 13, 2019
Merged

Add static code analysis#1970
compulim merged 30 commits intomicrosoft:masterfrom
compulim:feat-eslint

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented May 8, 2019

Changelog Entry

Added

Description

Adding code analysis tool to our build to make the code easier to maintain.

Also named all React components, makes debugging in React extension is slightly easier.

Although there are lot of files changes, most of them are:

  • Adding defaultProps and propTypes
  • Refactoring functional component as a separate function for naming
  • Reordering functions to meet no-use-before-define rule
  • Remove extra parenthesis

Specific Changes

  • Added eslint and related packages
  • Enabled eslint:recommended rules and react:recommended rules
  • In addition to recommended rules, hand-picked more rules
    • 144 additional rules were enabled, on top of the recommended set of 69 rules
    • No stylistic rules were picked
  • Name all React components, no more <Unknown> component in React dev tools
  • Add eslint to CI/CD pipeline
  • Testing Added

@compulim compulim requested a review from corinagum May 8, 2019 09:10
Copy link
Copy Markdown
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

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

🎊 🎆 ㊗️
Just a few comments - some of them are questions because I don't understand. This looks really great for iteration #1.

Comment thread .eslintrc.yml
Comment thread .eslintrc.yml
Comment thread .eslintrc.yml
Comment thread packages/component/package.json
Comment thread packages/component/src/Activity/CarouselLayout.js Outdated
Comment thread packages/component/src/Composer.js Outdated
Comment thread packages/component/src/connectToWebChat.js
Comment thread packages/core/src/__tests__/connectSaga.spec.js
@compulim compulim marked this pull request as ready for review May 13, 2019 18:36
@compulim compulim merged commit 45b7f25 into microsoft:master May 13, 2019
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.

2 participants