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

Implement stylelint rule to detect unused selectors #160

Open
mizdra opened this issue Oct 16, 2022 · 0 comments
Open

Implement stylelint rule to detect unused selectors #160

mizdra opened this issue Oct 16, 2022 · 0 comments
Labels

Comments

@mizdra
Copy link
Owner

mizdra commented Oct 16, 2022

ref: #106

It should be possible to detect unused selectors by following these steps:

  1. Get symbol of selector on .d.ts with TypeScript Compiler API
  2. Search for symbols that refer to the symbol retrieved in step 1
  3. If there is not a single symbol hit in step 2, the selector is unused.

Prior art

@mizdra mizdra added the Type: Add Add new features. label Oct 16, 2022
@mizdra mizdra added this to the v1.0.0 milestone Oct 16, 2022
@mizdra mizdra removed this from the v1.0.0 milestone Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant