Releases: francoismassart/eslint-plugin-tailwindcss
v1.5.3
MINOR: enhancing performances by saving mergedConfig
The merged config of Tailwind CSS is only generated when expired (1 second) or when it differs from previous config.
v1.5.2
FIX error occuring when using keys with - inside the tailwind.config.js
v1.5.1
tailwind.config.js
New features
classnames-order rule
configoption (default totailwind.config.js)
no-contradicting-classname and no-custom-classname rules
calleesoptions addedconfigoption (default totailwind.config.js)
JIT Mode related
Just-in-Time Mode brings new features to Tailwind CSS:
- Stackable variants
- Arbitrary value support
- Built-in important modifier
eslint-plugin-tailwindcss supports these new features 🎉
FIX
no-custom-classnameshould run even with a single classname- incorrect
insetrule ingroups.js
MINOR
lib/config/groups.jscan handle values from thetailwind.config.js- ADD
.prettierrc.json - ADD support for custom
separator - ADD support for custom breakpoints from
screens
MINOR FIX for `clear` in `groups.js`
Support `CallExpression`
You can parse TemplateLiteral string used as argument in a CallExpression.
The callee's name must be whitelisted, the default config accepts ctl aka the tiny utility classnames-template-literals from netlify.
You can specify one or more callee names by setting the callees option which expects an array of strings.
Only works for the classnames-order rule for now
FIXES
- [BUG] Single quotes are replaced by double quotes #4
MINOR
- Formatted code using Prettier
- Refact
schemameta
Support Tailwind v2.1.0
See the changelog of Tailwind CSS for all details
https://github.com/tailwindlabs/tailwindcss/releases/tag/v2.1.0
v1.2.0
New Features
- New rule added: no-contradicting-classname
v1.1.0
New Features
- New rule added: no-custom-classname