Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tailwindcss - npm Package Compare versions

Comparing version 1.15.0 to 1.16.0

27

lib/config/groups.js

@@ -625,3 +625,28 @@ /**

type: 'Border Color',
members: 'border\\-${borderColor}',
members: [
{
type: 'border-color',
members: 'border\\-${borderColor}',
},
{
type: 'border-top-color',
mode: 'jit',
members: 'border\\-t\\-${borderColor}',
},
{
type: 'border-right-color',
mode: 'jit',
members: 'border\\-r\\-${borderColor}',
},
{
type: 'border-bottom-color',
mode: 'jit',
members: 'border\\-b\\-${borderColor}',
},
{
type: 'border-left-color',
mode: 'jit',
members: 'border\\-l\\-${borderColor}',
},
],
},

@@ -628,0 +653,0 @@ {

4

lib/util/attr.js

@@ -39,4 +39,4 @@ /**

if (isSingleLine(attrVal)) {
// Fix multiple spaces
attrVal = attrVal.replace(/\s{2,}/g, ' ');
// Fix multiple spaces + trim
attrVal = attrVal.replace(/\s{2,}/g, ' ').trim();
classNames = attrVal.split(' ');

@@ -43,0 +43,0 @@ } else {

@@ -337,2 +337,3 @@ /**

function getGroups(groupsConfig, twConfig = null) {
const jitEnabled = twConfig && twConfig.mode && twConfig.mode === 'jit';
const groups = [];

@@ -349,3 +350,10 @@ groupsConfig.forEach((group) => {

prop.members.forEach((subprop) => {
groups.push(subprop.members);
const jitOnly = subprop['mode'] === 'jit';
if (!jitOnly) {
// Supported
groups.push(subprop.members);
} else if (jitEnabled) {
// Only supported via JIT mode
groups.push(subprop.members);
}
});

@@ -352,0 +360,0 @@ }

{
"name": "eslint-plugin-tailwindcss",
"version": "1.15.0",
"version": "1.16.0",
"description": "Rules enforcing best practices while using Tailwind CSS",

@@ -5,0 +5,0 @@ "keywords": [

@@ -15,2 +15,4 @@ # eslint-plugin-tailwindcss

- Support for [per-side border-color in JIT](https://github.com/tailwindlabs/tailwindcss/pull/4404)
- Better support for [JIT mode arbitrary values](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/40)

@@ -17,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc