# @jarrodldavis/eslint-plugin-tailwindcss

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

Latest version **0.4.0** (published 2020-11-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @jarrodldavis/eslint-plugin-tailwindcss
pnpm add @jarrodldavis/eslint-plugin-tailwindcss
yarn add @jarrodldavis/eslint-plugin-tailwindcss
bun add @jarrodldavis/eslint-plugin-tailwindcss
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2020-11-13 |
| First published | 2020-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^12.18.3 \|\| ^14.14.0 |
| Dependencies | 4 |
| Unpacked size | 37 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jarrod Davis |
| Maintainers | jarrodldavis |
| Keywords | eslint, eslintplugin, eslint-plugin, tailwind, tailwindcss, css, functional-css, utility-css, clsx, classname, classnames, classcat, classlist |

## Links

- npm: https://www.npmjs.com/package/@jarrodldavis/eslint-plugin-tailwindcss
- Repository: https://github.com/jarrodldavis/eslint-plugin-tailwindcss
- Homepage: https://github.com/jarrodldavis/eslint-plugin-tailwindcss#readme
- Issues: https://github.com/jarrodldavis/eslint-plugin-tailwindcss/issues
- npm.io page: https://npm.io/package/@jarrodldavis/eslint-plugin-tailwindcss

## Dependencies (4)

- [ajv](https://npm.io/package/ajv.md) ^6.12.6
- [esquery](https://npm.io/package/esquery.md) ^1.3.1
- [postcss-load-config](https://npm.io/package/postcss-load-config.md) ^3.0.0
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^6.0.4

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2020-11-13
- 0.3.0 — 2020-11-02
- 0.2.0 — 2020-10-28

## README

# @jarrodldavis/eslint-plugin-tailwindcss

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

## Install

Install with `npm` or `yarn`:

```sh
npm install --save-dev @jarrodldavis/eslint-plugin-tailwindcss
```

```sh
yarn add --dev @jarrodldavis/eslint-plugin-tailwindcss
```

## Usage

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

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

The same can be accomplished using the `recommended` config:

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

## Rule Options

See the [rule documentation][rule-docs] for details about using and configuring the `no-unknown-classes` rule.

[rule-docs]: https://github.com/jarrodldavis/eslint-plugin-tailwindcss/blob/main/docs/rules/no-unknown-class.md

---
_Source: https://npm.io/package/@jarrodldavis/eslint-plugin-tailwindcss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
