Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add classNames to the default value of callees #262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ FYI, here are the `default` values:
settings: {
tailwindcss: {
// These are the default values but feel free to customize
callees: ["classnames", "clsx", "ctl"],
callees: ["classNames", "classnames", "clsx", "ctl"],
config: "tailwind.config.js", // returned from `loadConfig()` utility if not provided
cssFiles: [
"**/*.css",
Expand Down
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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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", "classnames", "clsx", "ctl", "cva", "tv"]`)

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 @@ -21,7 +21,7 @@ function getOption(context, name) {
// Fallback to defaults
switch (name) {
case 'callees':
return ['classnames', 'clsx', 'ctl', 'cva', 'tv'];
return ['classNames', 'classnames', 'clsx', 'ctl', 'cva', 'tv'];
case 'ignoredKeys':
return ['compoundVariants', 'defaultVariants'];
case 'classRegex':
Expand Down