Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Check unknown variables on last step

Open
#12 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start by tracing the postcss-simple-vars plugin entry point and how its processing order handles unknown variables. Review the issue's proposed final-step subplugin and determine how users would opt into unused-variable errors. Done means variables can be used without ordering constraints while requested unknown or unused variables still produce an error.

Written by the indexing model from the issue text.

Description

enhancement

Right now we need to put postcss-mixins or postcss-for before postcss-simple-vars only because this plugin throw a error on unknow variable name.

But we can do smarter:

  • We somebody install postcss-simple-vars, it will add some custom subplugin to end of plugins.
  • Then it replace variables, but didn’t throw on unknown name.
  • Subplugin check unused variables and throw a error if user asked.
Dominant language
JavaScript
Stars
428
Forks
35
Avg merge
1m
Merged PRs (30d)
1

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No 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 postcss/postcss-simple-vars

All issues in postcss/postcss-simple-vars

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.