🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more →
Socket
Book a DemoInstallSign in
Socket

@jarrodldavis/eslint-plugin-tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jarrodldavis/eslint-plugin-tailwindcss

An ESLint plugin to enforce usage of Tailwind CSS utility and component classes.

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

@jarrodldavis/eslint-plugin-tailwindcss

An ESLint plugin to enforce usage of Tailwind CSS utility and component classes.

Install

Install with npm or yarn:

npm install --save-dev @jarrodldavis/eslint-plugin-tailwindcss
yarn add --dev @jarrodldavis/eslint-plugin-tailwindcss

Usage

In your .eslintrc.json (or other .eslintrc.* configuration file):

{
  "plugins": ["@jarrodldavis/tailwindcss"],
  "rules": {
    "@jarrodldavis/tailwindcss/no-unknown-class": "error"
  }
}

The same can be accomplished using the recommended config:

{
  "extends": ["plugin:@jarrodldavis/tailwindcss/recommended"]
}

Rule Options

See the rule documentation for details about using and configuring the no-unknown-classes rule.

Keywords

eslint

FAQs

Package last updated on 13 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts