Skip to content

Commit

Permalink
refactor!: enable no-duplicate-classes by default
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Jan 19, 2025
1 parent fb07b48 commit 4571c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ The following table shows the available rules and if they are enabled by default
| [multiline](docs/rules/multiline.md) | Enforce consistent line wrapping for tailwind classes. ||||
| [no-unnecessary-whitespace](docs/rules/no-unnecessary-whitespace.md) | Disallow unnecessary whitespace in tailwind classes. ||||
| [sort-classes](docs/rules/sort-classes.md) | Enforce a consistent order for tailwind classes. ||||
| [no-duplicate-classes](docs/rules/no-duplicate-classes.md) | Remove duplicate classes. | | ||
| [no-duplicate-classes](docs/rules/no-duplicate-classes.md) | Remove duplicate classes. | | ||

<br/>
<br/>
Expand Down
2 changes: 2 additions & 0 deletions src/configs/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ export const config = {
error: {
rules: {
[`${pluginName}/${tailwindMultiline.name}`]: "error",
[`${pluginName}/${tailwindNoDuplicateClasses.name}`]: "error",
[`${pluginName}/${tailwindNoUnnecessaryWhitespace.name}`]: "error",
[`${pluginName}/${tailwindSortClasses.name}`]: "error"
}
},
warning: {
rules: {
[`${pluginName}/${tailwindMultiline.name}`]: "warn",
[`${pluginName}/${tailwindNoDuplicateClasses.name}`]: "warn",
[`${pluginName}/${tailwindNoUnnecessaryWhitespace.name}`]: "warn",
[`${pluginName}/${tailwindSortClasses.name}`]: "warn"
}
Expand Down

0 comments on commit 4571c1b

Please sign in to comment.