Skip to content

Commit 443499f

Browse files
authored
Merge pull request #36 from primer/kh-add-jsx-a11y-mapping
Define some component mappings for jsx-a11y
2 parents b1ed304 + f03cd7d commit 443499f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/popular-swans-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-primer-react": patch
3+
---
4+
5+
Define some component mappings for jsx-a11y

src/configs/recommended.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ module.exports = {
1717
Link: { props: { as: { undefined: 'a', 'a': 'a', 'button': 'button'}}},
1818
Button: { default: 'button' },
1919
}
20+
},
21+
'jsx-a11y': {
22+
components: {
23+
Button: 'button',
24+
IconButton: 'button'
25+
}
2026
}
2127
}
2228
}

0 commit comments

Comments
 (0)