Skip to content

Commit ca14bb6

Browse files
authored
no-system-props: allow maxWidth prop for Truncate (#149)
* add maxWidth to allow list for Truncate * Create lazy-planes-prove.md
1 parent fc37cd0 commit ca14bb6

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
@@ -42,6 +42,7 @@ const excludedComponentProps = new Map([
4242
['PageLayout.Content', new Set(['padding', 'width'])],
4343
['ProgressBar', new Set(['bg'])],
4444
['PointerBox', new Set(['bg'])],
45+
['Truncate', new Set(['maxWidth'])],
4546
])
4647

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

0 commit comments

Comments
 (0)