We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
forbid-component-props
1 parent 1fc7d34 commit 477f36dCopy full SHA for 477f36d
lib/rules/forbid-component-props.js
@@ -39,26 +39,21 @@ module.exports = {
39
forbid: {
40
type: 'array',
41
items: {
42
- anyOf: [{
43
- type: 'string',
44
- }, {
45
- type: 'object',
46
- properties: {
47
- propName: {
48
49
- },
50
- allowedFor: {
51
- type: 'array',
52
- uniqueItems: true,
53
- items: {
54
+ anyOf: [
+ { type: 'string' },
+ {
+ type: 'object',
+ properties: {
+ propName: { type: 'string' },
+ allowedFor: {
+ type: 'array',
+ uniqueItems: true,
+ items: { type: 'string' },
55
},
56
57
- message: {
58
+ message: { type: 'string' },
59
60
61
- }],
+ ],
62
63
64
0 commit comments