Skip to content

Commit 7cec124

Browse files
committed
Breaking: Add missing rule schemas
1 parent 210865e commit 7cec124

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

lib/rules/jsx-closing-tag-location.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ module.exports = {
2727
url: docsUrl('jsx-closing-tag-location')
2828
},
2929
fixable: 'whitespace',
30-
31-
messages
30+
messages,
31+
schema: []
3232
},
3333

3434
create(context) {

lib/rules/jsx-no-useless-fragment.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,18 @@ module.exports = {
9393
recommended: false,
9494
url: docsUrl('jsx-no-useless-fragment')
9595
},
96-
messages
96+
messages,
97+
schema: [
98+
{
99+
type: 'object',
100+
properties: {
101+
allowExpressions: {
102+
type: 'boolean'
103+
}
104+
},
105+
additionalProperties: false
106+
}
107+
]
97108
},
98109

99110
create(context) {

0 commit comments

Comments
 (0)