-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improve tooling #6
base: master
Are you sure you want to change the base?
Conversation
.eslintrc.yml
Outdated
jest/no-focused-test: 0 | ||
jest/no-identical-title: 2 | ||
jest/valid-expect: 2 | ||
node/no-unsupported-features/es-syntax: 0 |
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.
You can fix this one by adding to package.json
:
"engines": {
"node": "8.10.0"
},
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 added it but eslint seemed to ignore it, so i left the rule
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.
Imo this should be ok, since they the rule is included in the engines field anyway
.eslintrc.yml
Outdated
jest/no-identical-title: 2 | ||
jest/valid-expect: 2 | ||
node/no-unsupported-features/es-syntax: 0 | ||
no-unused-vars: 1 |
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.
Try using on
, off
, and warn
instead of the numbers cause it's more readable
"redux": "^3.7.2", | ||
"redux-mock-store": "^1.3.0", | ||
"redux-object-to-promise": "^0.3.3", | ||
"redux-optimist-promise": "^0.8.3" | ||
"redux-optimist-promise": "^0.8.3", |
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 wonder why this is a dev dep
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.
For tests right?
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.
redux-optimist-promise also provides us with another
meta
key that can be used to revert optimistic updates in case of a server request failure.
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.
Hmmm i don't think reduck is using this, I think it's only because of the tests
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.
gotcha
bf53f56
to
415c329
Compare
No description provided.