-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
[react-jss] Add flow typings #818
Merged
HenriBeck
merged 27 commits into
cssinjs:master
from
gomesalexandre:react-jss-flow-typings
Aug 15, 2018
Merged
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
b4b0523
First commit
gomesalexandre e008910
Fixes on createHOC and injectSheet
gomesalexandre bd5348a
More fixes on createHOC and injectSheet
gomesalexandre 887652f
Better flow typings on createHOC
gomesalexandre 3954fc5
Moved types/index.js just to types.js and added InnerProps and OuterP…
a7cca18
Simplified typings of injectSheet.js
b379272
Updated and fixed some typings in createHOC.js
b1fb062
Removed unnecessary types in ns.js
1d69fce
Added flow flag to some untyped files
0c07422
Exporting StyleSheetFactoryOptions now instead of StyleSheetOptions
386f2e5
Fix typing of getDisplayName
839e1ae
Added Context Type and updated Options to use StyleSheetFactoryOption…
fccbbf0
Moved types/index.js just to types.js and added
5f1c1e8
Improved Context Type
d867aa2
Updated createHoc to use Context type
539c3ed
Improved typing of the Theming option
bacb6bd
Formatted code with prettier
2b86b8d
Updated size snapshot and lockfile
ecdf147
Make options in injectSheet optional an default it to an empty object
4c16374
Fixed types of the JssProvider props
3ad6097
Remove semi eslint rule
1a803f9
Removed unnecessary types
44d7dd5
Remove unnecessary check
9da04d3
Updated a if statement and fixed removing dynamic sheet from global r…
3d7d984
Fixed naming of some type names to always start with an uppercase char
fcd4345
Renamed generic types of createHOC
629d9f5
Merge branch 'master' into react-jss-flow-typings
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use spaces instead of tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be reverted anyway because prettier takes care of it. I actually write the code with semicolons and prettier removes them for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But yes, definetly spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the indent rule would avoid such issue, I have automatic linting fixes on save in VSCode. Plus we would get errors thrown within the hook, should I add it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also run prettier in the precommit git hook so it's unnecessary