Skip to content

Commit f63ff4e

Browse files
docs: updating config parameter’s default
1 parent 83ded23 commit f63ff4e

15 files changed

+23
-22
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ You can can the same information on your favorite command line software as well.
4040

4141
## Latest changelog
4242

43+
- feat: [support tailwind config in typescript](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/242) (by [quesabe](https://github.com/quesabe) 🙏)
4344
- feat: [add `ignoredKeys` in settings](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/232) used for `cva` or similar
4445
- fix: [callees with dot](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/227)
4546
- fix: [`no-custom-classname` doesn't work with hyphenated group names](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/226)
@@ -180,7 +181,7 @@ FYI, here are the `default` values:
180181
tailwindcss: {
181182
// These are the default values but feel free to customize
182183
callees: ["classnames", "clsx", "ctl"],
183-
config: "tailwind.config.js",
184+
config: "tailwind.config.js", // returned from `loadConfig()` utility if not provided
184185
cssFiles: [
185186
"**/*.css",
186187
"!**/node_modules",

docs/rules/classnames-order.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
4545
For example, `cva` has `compoundVariants` and `defaultVariants`.
4646
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
4747

48-
### `config` (default: `"tailwind.config.js"`)
48+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
4949

50-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
50+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
5151

5252
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
5353

docs/rules/enforces-negative-arbitrary-values.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
6363
For example, `cva` has `compoundVariants` and `defaultVariants`.
6464
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
6565

66-
### `config` (default: `"tailwind.config.js"`)
66+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
6767

68-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
68+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
6969

7070
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
7171

docs/rules/enforces-shorthand.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
5555
For example, `cva` has `compoundVariants` and `defaultVariants`.
5656
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
5757

58-
### `config` (default: `"tailwind.config.js"`)
58+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
5959

60-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
60+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
6161

6262
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
6363

docs/rules/migration-from-tailwind-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
100100
For example, `cva` has `compoundVariants` and `defaultVariants`.
101101
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
102102

103-
### `config` (default: `"tailwind.config.js"`)
103+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
104104

105-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
105+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
106106

107107
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
108108

docs/rules/no-arbitrary-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
4545
For example, `cva` has `compoundVariants` and `defaultVariants`.
4646
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
4747

48-
### `config` (default: `"tailwind.config.js"`)
48+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
4949

50-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
50+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
5151

5252
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
5353

docs/rules/no-contradicting-classname.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
4545
For example, `cva` has `compoundVariants` and `defaultVariants`.
4646
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
4747

48-
### `config` (default: `"tailwind.config.js"`)
48+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
4949

50-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
50+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
5151

5252
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
5353

docs/rules/no-custom-classname.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ You can specify which key(s) won't be parsed by the plugin using this setting.
4747
For example, `cva` has `compoundVariants` and `defaultVariants`.
4848
NB: As `compoundVariants` can have classnames inside its `class` property, you can also use a callee to make sure this inner part gets parsed while its parent is ignored.
4949

50-
### `config` (default: `"tailwind.config.js"`)
50+
### `config` (default: generated by `tailwindcss/lib/lib/load-config`)
5151

52-
By default the plugin will try to load the file `tailwind.config.js` at the root of your project.
52+
By default the plugin will try to load the file returned by the official `loadConfig()` utility.
5353

5454
This allows the plugin to use your customized `colors`, `spacing`, `screens`...
5555

lib/rules/classnames-order.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
uniqueItems: true,
5151
},
5252
config: {
53-
// default: 'tailwind.config.js',
53+
// returned from `loadConfig()` utility
5454
type: ['string', 'object'],
5555
},
5656
removeDuplicates: {

lib/rules/enforces-negative-arbitrary-values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
uniqueItems: true,
4747
},
4848
config: {
49-
// default: 'tailwind.config.js',
49+
// returned from `loadConfig()` utility
5050
type: ['string', 'object'],
5151
},
5252
tags: {

0 commit comments

Comments
 (0)