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 b42e9c7 commit 150b775Copy full SHA for 150b775
lib/rules/forbid-component-props.js
@@ -57,8 +57,8 @@ module.exports = {
57
create: function(context) {
58
const configuration = context.options[0] || {};
59
const forbid = new Map((configuration.forbid || DEFAULTS).map(value => {
60
- const propName = (typeof value === 'string') ? value : value.propName;
61
- const whitelist = (typeof value === 'string') ? [] : (value.allowedFor || []);
+ const propName = typeof value === 'string' ? value : value.propName;
+ const whitelist = typeof value === 'string' ? [] : (value.allowedFor || []);
62
return [propName, whitelist];
63
}));
64
0 commit comments