Selector is never used
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css, javascript, kotlin
- Domain
- developer-experience, tooling
Research direction
Start by reproducing the example in WebStorm 2023.3.2 with the styled-components plugin version listed in the issue, focusing on the custom .some_class selector versus the h3 selector. Done means valid custom selectors in styled-components blocks are no longer reported as unused.
Written by the indexing model from the issue text.
Description
- WebStorm 2023.3.2
- Styled-components plugin version: 233.13135.92
Problem description:
I noticed a problem after updating to the latest version of Webstorm when I want to write the class some_class, for example, into the Wrapper wrapper. Webstorm shows that this class has never been used, but this is not true.
WebStorm highlights only regular tags in the style h1-h5, p, ul, etc.
const Wrapper = styled.div`
// h3 is highlighted by the editor
h3 {
color: #242628;
font-size: 20px;
font-weight: 700;
line-height: 140%;
}
// Selector some_class is never used
.some_class {
margin-top: 20px;
}
`
- Dominant language
- Kotlin
- Stars
- 376
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from styled-components/webstorm-styled-components
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
styled-components/webstorm-styled-components#109 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
styled-components/webstorm-styled-components#107 · 4 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
styled-components/webstorm-styled-components#104 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
styled-components/webstorm-styled-components#103 · 1 comment · 2 reactions ·
All issues in styled-components/webstorm-styled-components
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Good First Issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ankidroid/Anki-Android#21942 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
libre-tube/LibreTube#8781 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MetrolistGroup/Metrolist#4396 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100