Skip to content

Commit 477f36d

Browse files
committed
[Refactor] forbid-component-props: tweak formatting
1 parent 1fc7d34 commit 477f36d

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

lib/rules/forbid-component-props.js

+12-17
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,21 @@ module.exports = {
3939
forbid: {
4040
type: 'array',
4141
items: {
42-
anyOf: [{
43-
type: 'string',
44-
}, {
45-
type: 'object',
46-
properties: {
47-
propName: {
48-
type: 'string',
49-
},
50-
allowedFor: {
51-
type: 'array',
52-
uniqueItems: true,
53-
items: {
54-
type: 'string',
42+
anyOf: [
43+
{ type: 'string' },
44+
{
45+
type: 'object',
46+
properties: {
47+
propName: { type: 'string' },
48+
allowedFor: {
49+
type: 'array',
50+
uniqueItems: true,
51+
items: { type: 'string' },
5552
},
56-
},
57-
message: {
58-
type: 'string',
53+
message: { type: 'string' },
5954
},
6055
},
61-
}],
56+
],
6257
},
6358
},
6459
},

0 commit comments

Comments
 (0)