Skip to content

Commit a998f02

Browse files
authored
Revert "Add mapping of "Box" to "div" (#176)"
This reverts commit 4302562.
1 parent 4302562 commit a998f02

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/configs/components.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,4 @@ const components = flattenComponents({
2020
},
2121
})
2222

23-
// We want to avoid setting a jsx-a11y mapping from `Box` to `div` until polymorphic linting is enabled for jsx-a11y.
24-
// However, polymorphic linting is enabled for the github plugin, so we can safely map `Box` to `div` (while also having it properly interpret the `as` prop)
25-
const githubMapping = Object.assign({}, components)
26-
githubMapping['Box'] = 'div'
27-
28-
module.exports = {
29-
jsxA11yMapping: components,
30-
githubMapping,
31-
}
23+
module.exports = components

src/configs/recommended.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {jsxA11yMapping, githubMapping} = require('./components')
1+
const components = require('./components')
22

33
module.exports = {
44
parserOptions: {
@@ -19,10 +19,10 @@ module.exports = {
1919
},
2020
settings: {
2121
github: {
22-
components: githubMapping,
22+
components,
2323
},
2424
'jsx-a11y': {
25-
components: jsxA11yMapping,
25+
components,
2626
},
2727
},
2828
}

0 commit comments

Comments
 (0)