-
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
#15 Added Typescript to the project #22
base: master
Are you sure you want to change the base?
Conversation
this.sizes = sizes; | ||
} | ||
|
||
_isBreakpoint(breakpoint: string) { |
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 method is
private
- you should describe return types for methods
} | ||
|
||
return `@media (min-width: ${this.sizes[min]}px) and | ||
(max-width: ${this.sizes[max] - 0.02}px)`; |
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.
something wrong with tabs
"node_modules", | ||
"dist" | ||
] | ||
} |
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 should add final newline
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
] | ||
} |
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.
final newline
Hi there, I rewrote this in typescript and removed babel. Closes #15
Please let me know if this works for you. Tests are working fine.
Regards :)