Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add responsiveVariants to ignoredKeys by default
  • Loading branch information
sushichan044 committed Apr 27, 2024
commit 1b4a62b4aa834dab5cd6e32b7b674bdb1dfdf1bc
2 changes: 1 addition & 1 deletion docs/rules/no-custom-classname.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ If you use some utility library like [@netlify/classnames-template-literals](htt

For best results, gather the declarative classnames together, avoid mixing conditional classnames in between, move them at the end.

### `ignoredKeys` (default: `["compoundVariants", "defaultVariants"]`)
### `ignoredKeys` (default: `["compoundVariants", "defaultVariants", "responsiveVariants"]`)

Using libraries like `cva`, some of its object keys are not meant to contain classnames in its value(s).
You can specify which key(s) won't be parsed by the plugin using this setting.
Expand Down