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 65512d6 commit afb717cCopy full SHA for afb717c
lib/rules/jsx-no-target-blank.js
@@ -86,8 +86,9 @@ module.exports = {
86
create: function(context) {
87
const configuration = context.options[0] || {};
88
const enforceDynamicLinks = configuration.enforceDynamicLinks || 'always';
89
+ const linkComponents = DEFAULTS.concat(context.settings.linkComponents || []);
90
- const elements = new Map((DEFAULTS.concat(configuration.components || [])).map(value => {
91
+ const elements = new Map((linkComponents.concat(configuration.components || [])).map(value => {
92
const name = typeof value === 'string' ? value : value.name;
93
const linkAttribute = typeof value === 'string' ? 'href' : value.linkAttribute;
94
return [name, linkAttribute];
0 commit comments