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.11.1-beta.0 to 3.12.0-beta.0

2

lib/rules/classnames-order.js

@@ -53,3 +53,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -56,0 +56,0 @@ },

@@ -49,3 +49,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -52,0 +52,0 @@ },

@@ -50,3 +50,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -53,0 +53,0 @@ },

@@ -55,3 +55,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -58,0 +58,0 @@ },

@@ -49,3 +49,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -52,0 +52,0 @@ },

@@ -50,3 +50,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -53,0 +53,0 @@ },

@@ -60,3 +60,3 @@ /**

config: {
// default: 'tailwind.config.js',
// returned from `loadConfig()` utility
type: ['string', 'object'],

@@ -134,9 +134,2 @@ },

}
const whitelistWithSeparator = whitelist.filter((re) => re.indexOf(mergedConfig.separator) > -1);
if (whitelistWithSeparator.length) {
const whitelistWithPrefixIdx = groupUtil.getGroupIndex(className, whitelistWithSeparator, null);
if (whitelistWithPrefixIdx >= 0) {
return; // Lazier is faster... processing next className!
}
}
const fromFilesIdx = groupUtil.getGroupIndex(className, classnamesFromFiles, mergedConfig.separator);

@@ -143,0 +136,0 @@ if (fromFilesIdx >= 0) {

@@ -6,2 +6,3 @@ 'use strict';

const resolveConfig = require('tailwindcss/resolveConfig');
const twLoadConfig = require('tailwindcss/lib/lib/load-config');

@@ -21,3 +22,3 @@ const CHECK_REFRESH_RATE = 1_000;

delete require.cache[require.resolve(module)];
return require(module);
return twLoadConfig.loadConfig(module);
}

@@ -24,0 +25,0 @@

'use strict';
const { resolveDefaultConfigPath } = require('tailwindcss/lib/util/resolveConfigPath')

@@ -22,3 +23,3 @@ function getOption(context, name) {

case 'config':
return 'tailwind.config.js';
return resolveDefaultConfigPath();
case 'cssFiles':

@@ -25,0 +26,0 @@ return ['**/*.css', '!**/node_modules', '!**/.*', '!**/dist', '!**/build'];

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

@@ -27,3 +27,3 @@ "keywords": [

"peerDependencies": {
"tailwindcss": "^3.2.2"
"tailwindcss": "^3.3.2"
},

@@ -45,3 +45,3 @@ "dependencies": {

"mocha": "^10.2.0",
"tailwindcss": "^3.2.2",
"tailwindcss": "^3.3.2",
"typescript": "4.3.5",

@@ -48,0 +48,0 @@ "vue-eslint-parser": "^9.1.0"

@@ -43,2 +43,3 @@ # eslint-plugin-tailwindcss

- feat: [support tailwind config in typescript](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/242) (by [quesabe](https://github.com/quesabe) πŸ™)
- feat: [add `ignoredKeys` in settings](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/232) used for `cva` or similar

@@ -184,3 +185,3 @@ - fix: [callees with dot](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/227)

callees: ["classnames", "clsx", "ctl"],
config: "tailwind.config.js",
config: "tailwind.config.js", // returned from `loadConfig()` utility if not provided
cssFiles: [

@@ -187,0 +188,0 @@ "**/*.css",

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