Skip to content

Commit 1a871a5

Browse files
add new rule to the index
1 parent 3794b38 commit 1a871a5

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
1010
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
1111

12-
| Name             | Description | 🔧 | 💡 |
13-
| :------------------------------------------------- | :---------------------------------------------------------------------------------- | :- | :- |
14-
| [classnames-order](docs/rules/classnames-order.md) | Enforces a consistent order for the Tailwind CSS classnames, based on the compiler. | 🔧 | 💡 |
12+
| Name                | Description | 🔧 | 💡 |
13+
| :------------------------------------------------------- | :---------------------------------------------------------------------------------- | :- | :- |
14+
| [classnames-order](docs/rules/classnames-order.md) | Enforces a consistent order for the Tailwind CSS classnames, based on the compiler. | 🔧 | 💡 |
15+
| [no-custom-classname](docs/rules/no-custom-classname.md) | Detects classnames which do not belong to Tailwind CSS. | | 💡 |
1516

1617
<!-- end auto-generated rules list -->
1718

docs/rules/no-custom-classname.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Detects classnames which do not belong to Tailwind CSS
2+
3+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
4+
5+
<!-- end auto-generated rule header -->
6+
7+
## Options
8+
9+
<!-- begin auto-generated rule options list -->
10+
11+
| Name | Type |
12+
| :---------- | :------- |
13+
| `whitelist` | String[] |
14+
15+
<!-- end auto-generated rule options list -->

src/rules/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import {
22
classnamesOrder,
33
RULE_NAME as CLASSNAMES_ORDER,
44
} from "./classnames-order";
5+
import {
6+
noCustomClassname,
7+
RULE_NAME as NO_CUSTOM_CLASSNAME,
8+
} from "./no-custom-classname";
59

610
export const rules = {
711
[CLASSNAMES_ORDER]: classnamesOrder,
12+
[NO_CUSTOM_CLASSNAME]: noCustomClassname,
813
};

0 commit comments

Comments
 (0)