Skip to content

Commit 2a1e048

Browse files
docs: changelog
1 parent 7a19f92 commit 2a1e048

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ You can can the same information on your favorite command line software as well.
4141

4242
## Latest changelog
4343

44+
- feat: [**support flat config and ESLint 9**](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/330) (by [kazupon](https://github.com/kazupon) 🙏)
4445
- feat: new rule [**`no-unnecessary-arbitrary-value`**](docs/rules/no-unnecessary-arbitrary-value.md) 🎉
4546
- fix: retro compatibility for older Tailwind CSS (before typescript config)
4647
- fix: [composable touch action classnames](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/293)
@@ -82,7 +83,7 @@ $ npm i -D eslint eslint-plugin-tailwindcss
8283

8384
#### `.eslintrc`
8485

85-
Use .eslintrc.* file to configure rules in ESLint < v9. See also: https://eslint.org/docs/latest/use/configure/.
86+
Use .eslintrc.\* file to configure rules in ESLint < v9. See also: https://eslint.org/docs/latest/use/configure/.
8687

8788
```js
8889
module.exports = {
@@ -93,17 +94,14 @@ module.exports = {
9394

9495
If you would like to know about configuration, Learn more in [ESLint docs](https://eslint.org/docs/latest/use/configure/configuration-files)
9596

96-
9797
#### `eslint.config.js`
9898

9999
Use `eslint.config.js` file to configure rules. This is the default in ESLint v9, but can be used starting from ESLint v8.57.0. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new.
100100

101101
```js
102102
import tailwind from "eslint-plugin-tailwindcss";
103103

104-
export default [
105-
...tailwind.configs["flat/recommended"],
106-
];
104+
export default [...tailwind.configs["flat/recommended"]];
107105
```
108106

109107
If you would like to know about configuration, Learn more in [ESLint docs](https://eslint.org/docs/latest/use/configure/configuration-files-new)
@@ -155,8 +153,10 @@ Our recommendations:
155153
#### For `eslint.config.js`
156154

157155
- For `js[x]`, `ts[x]`:
156+
158157
- Install the parser: `npm i -D @eslint/js typescript-eslint`
159158
- Assign it to your files in `eslint.config.js`:
159+
160160
```js
161161
import js from "@eslint/js";
162162
import ts from "typescript-eslint";
@@ -172,9 +172,12 @@ Our recommendations:
172172
...tailwind.configs["flat/recommended"],
173173
];
174174
```
175+
175176
- For `vue.js`:
177+
176178
- Install the parser: `npm i -D eslint-plugin-vue`
177179
- Assign it to your files in `eslint.config.js`:
180+
178181
```js
179182
import vue from "eslint-plugin-vue";
180183
import tailwind from "eslint-plugin-tailwindcss";
@@ -273,7 +276,7 @@ export default [
273276
classRegex: "^class(Name)?$", // can be modified to support custom attributes. E.g. "^tw$" for `twin.macro`
274277
},
275278
},
276-
}
279+
},
277280
];
278281
```
279282

0 commit comments

Comments
 (0)