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 3.14.1 to 3.14.2-beta.0

28

lib/config/groups.js

@@ -541,4 +541,28 @@ /**

type: 'Font Variant Numeric',
members:
'(normal|lining|oldstyle|proportional|tabular)\\-nums|ordinal|slashed-zero|(diagonal|stacked)\\-fractions',
members: [
{
type: 'Normal Nums',
members: 'normal\\-nums',
},
{
type: 'Ordinal',
members: 'ordinal',
},
{
type: 'Slashed Zero',
members: 'slashed-zero',
},
{
type: 'Style Nums',
members: '(lining|oldstyle)\\-nums',
},
{
type: 'Proportinal or Tabular',
members: '(proportional|tabular)\\-nums',
},
{
type: 'Fractions',
members: '(diagonal|stacked)\\-fractions',
},
],
},

@@ -545,0 +569,0 @@ {

6

lib/rules/enforces-shorthand.js

@@ -248,4 +248,6 @@ /**

// w-screen + h-screen ≠ size-screen (Issue #307)
const validValue =
bodyMatch && !(['w-', 'h-'].includes(remainingClass.body) && ['screen'].includes(remainingClass.value));
const spacingKeys = Object.keys(mergedConfig.theme.spacing);
const isSize = ['w-', 'h-'].includes(remainingClass.body);
const isValidSize = spacingKeys.includes(remainingClass.value);
const validValue = bodyMatch && !(isSize && !isValidSize);
return validValue;

@@ -252,0 +254,0 @@ }

{
"name": "eslint-plugin-tailwindcss",
"version": "3.14.1",
"version": "3.14.2-beta.0",
"description": "Rules enforcing best practices while using Tailwind CSS",

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

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