diff --git a/.changeset/chatty-penguins-breathe.md b/.changeset/chatty-penguins-breathe.md new file mode 100644 index 0000000..d61c5ff --- /dev/null +++ b/.changeset/chatty-penguins-breathe.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-primer-react": patch +--- + +Add exception for height and width for SkeletonBox in no-system-props rule diff --git a/src/rules/no-system-props.js b/src/rules/no-system-props.js index 393d37f..d5dfafd 100644 --- a/src/rules/no-system-props.js +++ b/src/rules/no-system-props.js @@ -48,6 +48,7 @@ const excludedComponentProps = new Map([ ['PointerBox', new Set(['bg'])], ['Truncate', new Set(['maxWidth'])], ['Stack', new Set(['padding', 'gap'])], + ['SkeletonBox', new Set(['width', 'height'])], ]) const alwaysExcludedProps = new Set(['variant', 'size'])