We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13f173 commit 643722eCopy full SHA for 643722e
src/rules/__tests__/no-sx-prop.test.js
@@ -15,7 +15,7 @@ const ruleTester = new RuleTester({
15
})
16
17
ruleTester.run('no-sx-prop', rule, {
18
- valid: [`import {Button} from '@primer/react'`],
+ valid: [],
19
invalid: [
20
{
21
code: `
src/rules/no-sx-prop.js
@@ -71,7 +71,7 @@ module.exports = {
71
}
72
73
const hasSxProp = node.attributes.some(attr => {
74
- if (attr.name.type === 'JSXIdentifier' && attr.name.name === 'sx') {
+ if (attr.name?.type === 'JSXIdentifier' && attr.name.name === 'sx') {
75
return true
76
77
return false
0 commit comments