Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/rules/classnames-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Examples of **correct** code for this rule:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/enforces-negative-arbitrary-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Examples of **correct** code for this rule:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/enforces-shorthand.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If indeed, you are using the `classnames-order` rule, then it'll be automaticall
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/migration-from-tailwind-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ This rule will report the issue but **it will not fix it for you**...
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-arbitrary-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Examples of **correct** code for this rule:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-contradicting-classname.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Examples of **correct** code for this rule:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-custom-classname.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Examples of **correct** code for this rule:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unnecessary-arbitrary-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Examples of **correct** code for negative arbitrary values:
...
```

### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv"]`)
### `callees` (default: `["classnames", "clsx", "ctl", "cva", "tv", "twmerge"]`)

If you use some utility library like [@netlify/classnames-template-literals](https://github.com/netlify/classnames-template-literals), you can add its name to the list to make sure it gets parsed by this rule.

Expand Down
2 changes: 1 addition & 1 deletion lib/util/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getOption(context, name) {
// Fallback to defaults
switch (name) {
case 'callees':
return ['classnames', 'clsx', 'ctl', 'cva', 'tv'];
return ['classnames', 'clsx', 'ctl', 'cva', 'tv', 'twMerge'];
case 'ignoredKeys':
return ['compoundVariants', 'defaultVariants'];
case 'classRegex':
Expand Down