[Feature request] Lint values in a object
See original GitHub issueIs your feature request related to a problem? Please describe. Can’t lint values in an object passed to a callee.
My list of callees: ["clsx", "cva"]
.
This doesn’t work:
const buttons = cva({
variants: {
variant: {
primary: "bg-white text-black font-bold px-4",
secondary: "bg-black text-white font-semibold px-5",
},
},
});
This does:
const buttons = cva({
variants: {
variant: {
primary: clsx("bg-white text-black font-bold px-4"),
secondary: clsx("bg-black text-white font-semibold px-5"),
},
},
});
Describe the solution you’d like I would like for the first example to work.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Lint unused values · Issue #8822 · helm/helm - GitHub
Is this a request for help?: Is this a BUG REPORT or FEATURE REQUEST? (choose one): Feature Request Version of Helm and Kubernetes:...
Read more >Lightning Lint tool doesn't like Object.values() method
I have looked through the related documents but still I don't understand what is wrong with getting values list from map using Object....
Read more >JavaScript Type Linting - Medium
All non-primitive values are objects. These are mutable and are compared by reference. The two simple types — string and number — have...
Read more >CI Lint API - GitLab Documentation
The CI lint returns an expanded version of the configuration. The expansion does not work for CI configuration added with include: local ,...
Read more >Working with Rules - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found the issue in the example
bg-red
is not a valid Tailwind class. This should be a gradient of red, for examplered-50
. If addedred-50
eslint will give you an error.Fixed in the latest release
v3.8.0