Editor/IDE/linting support for deleting dead css

Open
#254 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
css, typescript
Domain
frontend, tooling

Research direction

The issue names no files, tests, or entry points; first inspect the repository structure and existing CSS-blocks tooling before defining the scope. Clarify whether the desired result is an editor/IDE extension, a linter, or both, and agree on how unused CSS should be detected and what a completed implementation must demonstrate.

Written by the indexing model from the issue text.

Description

Css-blocks seems really awesome, and on further investigation, I think it will be the GOTO solution for css once it has reached 1.0 status

One thing I am curious about - I know css blocks will remove unused css - this is awesome so your utility classes can be there if you need them, but don't cause un-necessary bloat.

However, if you are refactoring large amounts of css, it seems to me we'd also be interested in removing the code from the codebase altogether. The best solution in my eyes would be an editor/ide extension that highlights unused/dead css, along with a linter that can help you clean up the whole codebase or evaluate its cleanliness.

Will this eventually be something that's included in the css-blocks experience?

Dominant language
TypeScript
Stars
6.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linkedin/css-blocks

All issues in linkedin/css-blocks

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.