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

#15 Added Typescript to the project #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fedeorlandau
Copy link

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 :)

@Fedeorlandau Fedeorlandau changed the title Rewrote it in Typescript #15 Added Typescript to the project Oct 12, 2021
this.sizes = sizes;
}

_isBreakpoint(breakpoint: string) {
Copy link
Collaborator

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)`;
Copy link
Collaborator

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"
]
}
Copy link
Collaborator

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"
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

final newline

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.

Add types for TS
2 participants