Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Improve tooling #6

wants to merge 6 commits into from

Conversation

mihaiberq
Copy link

No description provided.

.eslintrc.yml Outdated
jest/no-focused-test: 0
jest/no-identical-title: 2
jest/valid-expect: 2
node/no-unsupported-features/es-syntax: 0
Copy link
Member

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"
  },

Copy link
Author

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

Copy link
Author

@mihaiberq mihaiberq Nov 15, 2018

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
Copy link
Member

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",
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

For tests right?

Copy link
Author

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.

Copy link
Member

@nem035 nem035 Nov 15, 2018

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

gotcha

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