Skip to content

Commit f83a980

Browse files
committed
Recommend 'github' plugin and provide comopnent mapping
1 parent 0156ef2 commit f83a980

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/configs/recommended.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ module.exports = {
55
jsx: true
66
}
77
},
8-
plugins: ['primer-react'],
8+
plugins: ['primer-react', 'github'],
9+
extends: ['plugin:github/react'],
910
rules: {
1011
'primer-react/no-deprecated-colors': 'warn',
1112
'primer-react/no-system-props': 'warn'
13+
},
14+
settings: {
15+
github: {
16+
components: {
17+
Link: { as: { undefined: 'a', 'button': 'button'}},
18+
Button: { default: 'button' },
19+
}
20+
}
1221
}
1322
}

0 commit comments

Comments
 (0)