styled-components / webstorm-styled-components

styled-components highlighting support in IntelliJ editors
https://plugins.jetbrains.com/plugin/9997-styled-components
MIT License
375 stars 19 forks source link

Linting Breaks with TypeScript Interface. #53

Closed izakfilmalter closed 6 years ago

izakfilmalter commented 6 years ago

I am using typescript on a project and noticed that when you us an interface to type check the props on a styled-component, the linting breaks.

image

undeadcat commented 6 years ago

@izakfilmalter, What IDE version are you using? Generic arguments for tagged template strings (like styled.div<TabProps>) are a TypeScript feature that was added fairly recently and are only supported since 2018.2 IDE versions.

izakfilmalter commented 6 years ago

I am on 2018.1.5

undeadcat commented 6 years ago

@izakfilmalter, Please try 2018.2, your sample works fine for me in the new version.

Unfortunately, support for these kinds of language features has to happen on the IDE side. There's some more details in this comment if you're interested.

izakfilmalter commented 6 years ago

@undeadcat Updating got it working thanks! Closing.