This repository was archived by the owner on Aug 1, 2021. It is now read-only.
File tree 2 files changed +43
-1
lines changed
2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @jarrodldavis/eslint-plugin-tailwindcss" ,
3
3
"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. " ,
5
5
"main" : " dist/lib/index.js" ,
6
6
"files" : [
7
7
" dist/lib"
You can’t perform that action at this time.
0 commit comments