You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lint): add rules to disallow slotted popovers and tailwind classes
- `no-slotted-popovers` to prevent the use of the slot attribute on popover elements
- `no-tailwind-classes` to disallow Tailwind CSS utility classes on nve custom elements
Signed-off-by: Cory Rylan <crylan@nvidia.com>
Copy file name to clipboardExpand all lines: projects/lint/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,8 @@ export default [
83
83
|`@nvidia-elements/lint/no-nested-container-types`| Require nested container components to use flat container mode. | HTML |`error`|
84
84
|`@nvidia-elements/lint/no-restricted-attributes`| Disallow use of invalid API attributes or utility attributes on custom HTML element tags. | HTML |`error`|
85
85
|`@nvidia-elements/lint/no-restricted-page-sizing`| Disallow custom height or width styles on nve-page. | HTML |`error`|
86
+
|`@nvidia-elements/lint/no-slotted-popovers`| Disallow the slot attribute on popover elements (nve-tooltip, nve-dialog, nve-drawer, ...). | HTML |`error`|
87
+
|`@nvidia-elements/lint/no-tailwind-classes`| Disallow Tailwind CSS utility classes with Elements alternatives, and all Tailwind utilities on nve custom elements. | HTML |`warn`|
86
88
|`@nvidia-elements/lint/no-unexpected-attribute-value`| Disallow use of invalid attribute values for nve-* elements. | HTML |`error`|
87
89
|`@nvidia-elements/lint/no-unexpected-css-value`| Disallow use of invalid CSS values. | CSS |`error`|
88
90
|`@nvidia-elements/lint/no-unexpected-css-variable`| Disallow use of invalid CSS theme variables. | CSS |`error`|
0 commit comments