Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

refactor(customPropTypes): remove usage of _.chain #1399

Merged
merged 1 commit into from
May 27, 2019

Conversation

layershifter
Copy link
Member

Picked from #1169.

This PR removes the usage of Lodash's _.chain():
https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba

The main problem: with _.chain() you will include the whole Lodash and you will not be able to pick single modules. babel-plugin-lodash will also stuck in this case.

xdescribe('is conformant', () => {
isConformant(Box)
})
})
Copy link
Member Author

Choose a reason for hiding this comment

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

This file does nothing, let's remove dead code.

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@codecov
Copy link

codecov bot commented May 27, 2019

Codecov Report

Merging #1399 into master will decrease coverage by 0.01%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1399      +/-   ##
==========================================
- Coverage   73.47%   73.45%   -0.02%     
==========================================
  Files         778      778              
  Lines        5859     5859              
  Branches     1726     1726              
==========================================
- Hits         4305     4304       -1     
- Misses       1548     1549       +1     
  Partials        6        6
Impacted Files Coverage Δ
packages/react-proptypes/src/index.ts 33.33% <63.63%> (+0.72%) ⬆️
...ages/react/test/specs/commonTests/isConformant.tsx 92.45% <0%> (-0.95%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0730931...505e90a. Read the comment docs.

@layershifter layershifter merged commit 47727de into master May 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the refactor/proptypes-remove-chain branch May 27, 2019 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants