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

6

lib/rules/enforces-shorthand.js

@@ -246,3 +246,7 @@ /**

if (mode === 'value') {
return inputSet.some((inputClassPattern) => inputClassPattern === remainingClass.body);
const bodyMatch = inputSet.some((inputClassPattern) => inputClassPattern === remainingClass.body);
// w-screen + h-screen ≠ size-screen (Issue #307)
const validValue =
bodyMatch && !(['w-', 'h-'].includes(remainingClass.body) && ['screen'].includes(remainingClass.value));
return validValue;
}

@@ -249,0 +253,0 @@ });

4

lib/util/groupMethods.js

@@ -489,4 +489,4 @@ /**

*
* @param {String} name Classname to be find using patterns
* @param {Array} group The group bein tested
* @param {String} name Classname to be find using patterns (without modifiers)
* @param {Array} group The group being tested
* @param {Object} config Tailwind CSS config

@@ -493,0 +493,0 @@ * @param {String} parentType The name of the parent group

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

@@ -21,3 +21,2 @@ "keywords": [

"scripts": {
"wip": "mocha tests/lib/rules/no-arbitrary-value.js",
"test": "mocha tests --recursive"

@@ -24,0 +23,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