Warn or error on a css call outside of the config's include #1925
JoshuaKGoldberg
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
That's a great idea. The ESLint Plugin will be a good place for this idea. It's list on the roadmap here https://panda-css.canny.io/feature-request/p/eslint-plugin |
Beta Was this translation helpful? Give feedback.
2 replies
-
@JoshuaKGoldberg I've got a spot point I'd love your support with in the eslint plugin. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
If a
css()
call is made in a file outside of Panda's configuredinclude
, it'd be nice to have some indication that that will do nothing. A lint rule? Extension indication?Problem Statement/Justification
I filed #1917 because I didn't realize I was calling
css()
in a file outside theinclude
specified in thepanda.config.ts
. No errors or warnings showed up in the CLI or editor. It took @segunadebayo kindly looking through the PR to get to #1917 (comment).Proposed Solution or API
There's already an editor extension, maybe that can give these complaints? If it sees a
css()
in a file outside the configuredinclude
, it can give a yellow squiggly complaint on the call?Alternatives
Alternately or additionally, how about an ESLint rule? I'd be happy to help make an
eslint-plugin-panda-css
or the like. This would let users define cleanliness nitpicks such as not including unnecessary[]
s in values or other best practices.Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions