-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Tests & eslint #4
Conversation
@cmichaelgraham Can you take a look at the TS issues that Bryan mentions above? |
@bryanrsmith How is the lint setup working for you? If it's working out well, perhaps we should update our other repos. Let me know what you think.
However, it may be that there's an issue in the d.ts generator. @cmichaelgraham Can you take a look at this?
|
@EisenbergEffect The lint setup is working fairly well, but I just realized I hadn't checked it with some of the TS changes. It doesn't seem to like the interfaces. I will look at it further tonight, and probably pull out the TS stuff into a separate PR so we can merge the rest of the changes. I think we could start rolling it out in other repos if you're happy with the rules (I just stole Airbnb's config, removed the react bits, and adjusted one or two rules that didn't work for us). Since we already have failing lint tasks in all the repos, we can probably just swap it out & then get everyone to contribute to cleanup until everything passes.
I don't think I can use an interface because it's a union type. I think what I want is type aliases, but I can't get that to work with the generator. /cc @cmichaelgraham export type ConfigOrCallback = IRequestInit|(config: HttpClientConfiguration) => void|string;
...
configure(config: ConfigOrCallback): void {
} It compiles, but the
Me too, but the generator rejects that syntax.
Sounds fine to me. |
@EisenbergEffect @cmichaelgraham I moved the type annotation changes to #5. This one should be good to go. |
I'll merge momentarily. |
Basic tests and eslint gulp task that I didn't get in before release.