-
Notifications
You must be signed in to change notification settings - Fork 10
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
♻️ Rewrite in TypeScript #4
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 awesome! I love to see more Typescript. Had a bunch of comments, but they're mostly nits and little things.
Co-Authored-By: Kerrick <me@kerricklong.com>
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.
One last little thing.
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.
Cool I forgot to send these comments hours ago..
@@ -0,0 +1,53 @@ | |||
{ |
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.
Maybe update this to match https://github.com/secondstreet/template-builder/blob/master/tslint.json? (If you add the prettier rule and plugin, update the lint-staged config to match as well.)
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 agree it would be a good idea to unify but given that we have multiple tslint configs across multiple projects, I'd like to keep this PR concerned with what it currently is, and handle tslint config unification across everywhere as its own project.
|
||
module.exports = [ | ||
{ | ||
...commonConfig, |
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 works here because the two objects have distinct sets of keys, but consider switching to https://github.com/survivejs/webpack-merge for a more robust webpack config merging solution.
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.
Will definitely keep that in mind in case the keys ever become non-distinct.
package.json
Outdated
"webpack-cli": "^3.1.2" | ||
}, | ||
"dependencies": { | ||
"es6-promise": "4.2.4" |
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.
Just noticed that this and a few of the ones in devDeps don't have a ^
in front of the version; any particular reason? Would be nice to have them all defined the same way if not. (I noticed because the yarn lock update in ss-embed was listing both ^4.2.4
and 4.2.4
for es6-promise
separately).
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 devDependencies, it mostly came down to the ones I don't trust to follow semver. TypeScript introduces breaking changes outside of major version releases, so I didn't allow it (or tslint+friends) to auto-upgrade.
For dependencies, it's because this is a public library and I wanted to pin very specific dependency versions as "actually tested to work".
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.
After talking further offsite, let's go with ~
-- it should be safe enough.
No description provided.