tailwindcss/src
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
..
css Fix preflight border color fallback (#7288) 2022-02-01 11:27:42 -05:00
lib Expose context.sortClassList(classes) (#7412) 2022-02-10 18:06:41 +01:00
postcss-plugins/nesting Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) (#7080) 2022-01-15 16:07:20 +01:00
public Improve warnings (#5666) 2021-10-01 11:47:02 -04:00
util Fix negative utility generation and detection when using a prefix (#7295) 2022-02-07 10:24:30 -05:00
cli-peer-dependencies.js Improve new JIT-compatible CLI (#4558) 2021-06-04 10:28:09 -04:00
cli.js Remove false positive warning in CLI when using the --content option (#7220) 2022-01-26 19:31:50 +01:00
constants.js Adds support for tailwind.config.cjs files (#3181) 2021-05-07 13:56:10 -04:00
corePlugins.js Improve various warnings (#7118) 2022-01-19 15:09:13 -05:00
featureFlags.js Change how we handle defaults (optimized or not) (#6926) 2022-01-07 11:39:45 -05:00
index.js Remove the watching context (#6858) 2022-01-03 17:45:31 +01:00
processTailwindFeatures.js Fix @apply order regression (in addComponents, addUtilities, ...) (#7232) 2022-01-27 13:16:44 +01:00