Skip to content

Commit 0dbb7a7

Browse files
authored
Merge branch 'main' into no-system-props/skip-html-elements
2 parents c26c437 + ca14bb6 commit 0dbb7a7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/lazy-planes-prove.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-primer-react": patch
3+
---
4+
5+
no-system-props: allow maxWidth prop for Truncate

src/rules/no-system-props.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const excludedComponentProps = new Map([
4343
['PageLayout.Content', new Set(['padding', 'width'])],
4444
['ProgressBar', new Set(['bg'])],
4545
['PointerBox', new Set(['bg'])],
46+
['Truncate', new Set(['maxWidth'])],
4647
])
4748

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

0 commit comments

Comments
 (0)