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

Commit cf99e74

Browse files
committed
add readme
1 parent c6495e1 commit cf99e74

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# @jarrodldavis/eslint-plugin-tailwindcss
2+
3+
> An ESLint plugin to enforce usage of Tailwind CSS utility and component classes.
4+
5+
## Install
6+
7+
Install with `npm` or `yarn`:
8+
9+
```sh
10+
npm install --save-dev @jarrodldavis/eslint-plugin-tailwindcss
11+
```
12+
13+
```sh
14+
yarn add --dev @jarrodldavis/eslint-plugin-tailwindcss
15+
```
16+
17+
## Usage
18+
19+
In your `.eslintrc.json` (or other `.eslintrc.*` configuration file):
20+
21+
```json
22+
{
23+
"plugins": ["@jarrodldavis/tailwindcss"],
24+
"rules": {
25+
"@jarrodldavis/tailwindcss/no-unknown-class": "error"
26+
}
27+
}
28+
```
29+
30+
The same can be accomplished using the `recommended` config:
31+
32+
```json
33+
{
34+
"extends": ["plugin:@jarrodldavis/tailwindcss/recommended"]
35+
}
36+
```
37+
38+
## Rule Options
39+
40+
See the [rule documentation][rule-docs] for details about using and configuring the `no-unknown-classes` rule.
41+
42+
[rule-docs]: https://github.com/jarrodldavis/eslint-plugin-tailwindcss/blob/main/docs/rules/no-unknown-class.md

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@jarrodldavis/eslint-plugin-tailwindcss",
33
"version": "0.1.6",
4-
"description": "An ESLint plugin to enforce usage of Tailwind CSS utility classes",
4+
"description": "An ESLint plugin to enforce usage of Tailwind CSS utility and component classes.",
55
"main": "dist/lib/index.js",
66
"files": [
77
"dist/lib"

0 commit comments

Comments
 (0)