Skip to content

Commit a7831c0

Browse files
committed
Add settings for eslint-plugin-github
1 parent 9307296 commit a7831c0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/configs/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const flattenComponents = require('../utils/flatten-components');
1+
const { flattenComponents } = require('../utils/flatten-components');
22

33
const components = flattenComponents({
44
Button: 'button',

src/configs/recommended.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const components = require('./components');
2+
13
module.exports = {
24
parserOptions: {
35
sourceType: 'module',
@@ -15,8 +17,11 @@ module.exports = {
1517
'primer-react/a11y-explicit-heading': 'error'
1618
},
1719
settings: {
20+
github: {
21+
components: components
22+
},
1823
'jsx-a11y': {
19-
components: require('./components')
24+
components: components
2025
}
2126
}
2227
}

0 commit comments

Comments
 (0)