Robin Malfait
96d4ce2516
Expose context.sortClassList(classes) ( #7412 )
...
* add prettier-plugin-tailwindcss
This will use the prettier plugin in our tests as well, yay consistency!
* ensure that both `group` and `peer` can't be used in `@apply`
This was only configured for `group`
* expose `sortClassList` on the context
This function will be used by the `prettier-plugin-tailwindcss` plugin,
this way the sorting happens within Tailwind CSS itself adn the
`prettier-plugin-tailwindcss` plugin doesn't have to use internal /
private APIs.
The signature looks like this:
```ts
function sortClassList(classes: string[]): string[]
```
E.g.:
```js
let sortedClasses = context.sortClassList(['p-1', 'm-1', 'container'])
```
* update changelog
* add sort test for utilities with the important modifier e.g.: `!p-4`
2022-02-10 18:06:41 +01:00
..
2021-12-15 18:13:09 +01:00
2022-02-10 18:06:41 +01:00
2022-01-15 16:07:20 +01:00
2022-01-07 11:39:45 -05:00
2021-10-18 12:08:48 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2022-02-10 18:06:41 +01:00
2022-02-07 10:00:19 -05:00
2022-01-07 11:39:45 -05:00
2021-12-24 13:20:35 -05:00
2022-02-10 18:06:41 +01:00
2022-01-07 11:39:45 -05:00
2021-12-06 10:47:16 -05:00
2022-02-07 09:52:54 -05:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-03 15:41:49 +01:00
2021-10-18 12:08:48 +02:00
2021-12-24 13:20:35 -05:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-12-07 18:49:40 +01:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-09 16:15:53 +02:00
2021-09-03 13:48:16 +02:00
2021-10-01 12:56:54 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-12-04 13:38:40 -05:00
2021-12-04 13:38:40 -05:00
2021-12-04 13:38:40 -05:00
2022-02-10 18:06:41 +01:00
2022-01-07 11:39:45 -05:00
2022-01-03 13:12:43 +01:00
2021-09-26 12:44:13 +02:00
2021-09-26 12:44:13 +02:00
2021-11-10 13:15:32 +01:00
2021-05-07 13:56:15 -04:00
2021-12-15 11:09:29 -05:00
2022-02-10 18:06:41 +01:00
2021-10-18 18:11:34 +02:00
2021-05-07 13:56:15 -04:00
2021-11-12 16:38:03 +01:00
2022-02-07 10:24:30 -05:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-11-23 14:59:25 -05:00
2022-02-10 18:06:41 +01:00
2022-02-10 18:06:41 +01:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-01-07 11:39:45 -05:00
2021-10-06 17:45:26 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-29 11:15:31 +01:00
2021-09-29 11:15:31 +01:00
2022-01-07 11:39:45 -05:00
2021-10-06 13:42:05 -04:00
2022-02-10 18:06:41 +01:00
2021-12-13 16:00:31 +01:00
2021-12-07 18:49:40 +01:00
2021-09-10 09:35:15 -04:00
2022-02-10 18:06:41 +01:00
2021-09-26 07:44:41 -04:00
2022-01-04 23:03:41 -05:00
2022-01-07 11:39:45 -05:00
2021-09-03 13:48:16 +02:00
2022-02-07 10:24:30 -05:00
2021-10-19 15:22:49 +02:00
2022-02-01 11:27:42 -05:00
2022-01-07 11:39:45 -05:00
2021-10-27 10:21:24 -04:00
2021-12-14 12:21:38 -05:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2022-02-10 18:06:41 +01:00
2021-10-06 13:42:05 -04:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-09-03 13:48:16 +02:00
2021-12-14 15:55:26 -05:00
2021-05-26 09:43:05 -04:00
2021-12-30 16:41:23 +01:00
2022-02-10 18:06:41 +01:00
2021-09-21 12:41:58 -04:00
2021-09-21 12:43:44 -04:00
2021-09-21 12:37:49 -04:00
2021-12-07 18:49:40 +01:00
2021-12-15 11:09:29 -05:00
2022-01-07 11:39:45 -05:00
2021-11-23 14:59:25 -05:00
2022-01-14 10:20:43 -05:00
2022-01-14 09:47:39 -05:00
2021-09-09 16:15:53 +02:00