Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

jarrodldavis/eslint-plugin-tailwindcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 13, 2020
043d53e · Nov 13, 2020

History

96 Commits
Nov 2, 2020
Oct 22, 2020
Nov 2, 2020
Nov 13, 2020
Nov 13, 2020
Nov 12, 2020
Nov 13, 2020
Nov 1, 2020
Nov 2, 2020
Nov 2, 2020
Oct 21, 2020
Nov 2, 2020
Oct 22, 2020
Nov 2, 2020
Oct 21, 2020
Oct 22, 2020
Oct 28, 2020
Nov 13, 2020
Nov 13, 2020
Nov 13, 2020
Nov 13, 2020
Oct 28, 2020

Repository files navigation

@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.