-
Notifications
You must be signed in to change notification settings - Fork 471
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
feat: update to CRA 2 and Storybook 5 #987
Conversation
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.
This is great. The open question is what to do about linting? Should we go all in on prettier + eslint?
- We should probably still have a
lint
command, but that could runeslint
as it's already available. - We should document that this project uses prettier, and encourage people to use an editor plugin for it. Having it format on save is pretty helpful.
- Should we run prettier before commit? I find any pre-commit hook quite annoying, so maybe not. But then we should double down on having folks run prettier in their editors. Same goes for eslint warning.
💯 agree.
I'd prefer to unburden the developers and make prettier optional.
True, maybe we should remove prettier altogether and just use eslint. Quick and easy, what do you think? |
@fsdiogo can ya update from master pls |
Synced with master @olizilla. |
package-lock got funky. I can't start the app in local dev mode from an
|
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
I used You are right, doing |
@fsdiogo you did the right thing, but it did not do the right thing! Is working now. |
Nice! Want to shed some light of how you solved it please? |
@fsdiogo The error showed that $ cat node_modules/create-hash/package.json
{
"name": "es-to-primitive",
"version": "1.2.0",
"author": "Jordan Harband",
"description": "ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES2015 versions.", so then i was all like whuuuuuuut!? so i checked the package-lock.json and found this weird nugget "create-hash": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", sooo, that's weird, but it at least explains why npm was dropping the solution, well, no magic here... $ rm -rf node_module package-lock.json
$ npm i 🎉 ...previously we had to be careful to preserve our package-lock.json when we were depending on an older version of ipld and a specific arrangement of ipld deps, but since we upgraded that, we're safe to re-build the package-lock when things get weird. |
Thanks @olizilla! |
Updates to Create React App 2 and Storybook 5.
Closes #888 and #986.