-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Prettier * Make sure linting and formatting are part of the testing process. * Run prettier on existing code.
- Loading branch information
1 parent
85fb553
commit 0c048f0
Showing
19 changed files
with
199 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ env: | |
- REACT=16.6 | ||
sudo: false | ||
script: | ||
- npm run lint | ||
- npm run test | ||
- npm test | ||
after_success: | ||
- npm run coverage |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps' | ||
|
||
export function whenMapStateToPropsIsFunction(mapStateToProps) { | ||
return (typeof mapStateToProps === 'function') | ||
return typeof mapStateToProps === 'function' | ||
? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') | ||
: undefined | ||
} | ||
|
||
export function whenMapStateToPropsIsMissing(mapStateToProps) { | ||
return (!mapStateToProps) | ||
? wrapMapToPropsConstant(() => ({})) | ||
: undefined | ||
return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : undefined | ||
} | ||
|
||
export default [ | ||
whenMapStateToPropsIsFunction, | ||
whenMapStateToPropsIsMissing | ||
] | ||
export default [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.