Skip to content

Commit

Permalink
no-system-props: allow maxWidth prop for Truncate (#149)
Browse files Browse the repository at this point in the history
* add maxWidth to allow list for Truncate

* Create lazy-planes-prove.md
  • Loading branch information
siddharthkp authored Mar 7, 2024
1 parent fc37cd0 commit ca14bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-planes-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-primer-react": patch
---

no-system-props: allow maxWidth prop for Truncate
1 change: 1 addition & 0 deletions src/rules/no-system-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const excludedComponentProps = new Map([
['PageLayout.Content', new Set(['padding', 'width'])],
['ProgressBar', new Set(['bg'])],
['PointerBox', new Set(['bg'])],
['Truncate', new Set(['maxWidth'])],
])

const alwaysExcludedProps = new Set(['variant', 'size'])
Expand Down

0 comments on commit ca14bb6

Please sign in to comment.