Eslint plugin #705
Closed
matheusps
started this conversation in
Technical RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Eslint plugin Admin UI
This discussion exists to gather ideas for building an eslint-plugin for Admin UI. It can help us to ensure the correct usage of our features.
Rules
The rules supported by
@vtex/eslint-plugin-admin-ui
ensure-token-usage
Using tokens is considered good practice to achieve consistency. This rule ensures that themeable
csx
properties prefer tokens instead of hardcoded values.✅ Pass
❌ Fail
ensure-csx-correct-usage
The
csx
function should not be used inside of React components scope.✅ Pass
❌ Fail
References
Other design systems, like Admin UI, rely on Eslint plugins to boost the developer experience. Some examples:
Open space for ideas
This plugin will not be successful without our user's/contributors' input. So, please, your opinions are welcome and important.
Beta Was this translation helpful? Give feedback.
All reactions