You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we implement a stylex.defineConsts API, we should also have a lint rule that enforces consistent usage of those constants in your codebase.
For example, you should be able to configure this lint rule to disallow any string media queries from being used and to enforce that all media queries are used by importing the shared media queries instead.
Advanced: File tree knowledge
The lint rule could discover all stylex.defineConsts definitions in your codebase and automatically error only when a value equal or close to a constant is used in the codebase. This can include all types of values (such as lengths, colors, and media queries)
The text was updated successfully, but these errors were encountered:
Depends on #724
If we implement a
stylex.defineConsts
API, we should also have a lint rule that enforces consistent usage of those constants in your codebase.For example, you should be able to configure this lint rule to disallow any string media queries from being used and to enforce that all media queries are used by importing the shared media queries instead.
Advanced: File tree knowledge
The lint rule could discover all
stylex.defineConsts
definitions in your codebase and automatically error only when a value equal or close to a constant is used in the codebase. This can include all types of values (such as lengths, colors, and media queries)The text was updated successfully, but these errors were encountered: