Skip to content

Commit c597a0e

Browse files
committed
Add test case for import from github-ui
1 parent 198e99c commit c597a0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rules/__tests__/use-styled-react-import.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ ruleTester.run('use-styled-react-import', rule, {
3030
`import { Avatar } from '@primer/react'
3131
const Component = () => <Avatar sx={{ color: 'red' }} />`,
3232

33+
// Valid: Component not imported from @primer/react
34+
`import { Button } from '@github-ui/button'
35+
const Component = () => <Button sx={{ color: 'red' }} />`,
36+
3337
// Valid: Mixed imports - component without sx prop
3438
`import { Button, Text } from '@primer/react'
3539
const Component = () => <Button>Click me</Button>`,

0 commit comments

Comments
 (0)