Skip to content

Commit

Permalink
Breaking: Add missing rule schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Oct 18, 2021
1 parent d06f27b commit 52cd580
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc
Expand Up @@ -45,7 +45,6 @@
}],

"eslint-plugin/consistent-output": 0,
"eslint-plugin/require-meta-schema": 0,
"eslint-plugin/require-meta-type": 0
},
"overrides": [
Expand Down
1 change: 1 addition & 0 deletions lib/rules/jsx-closing-tag-location.js
Expand Up @@ -28,6 +28,7 @@ module.exports = {
},
fixable: 'whitespace',
messages,
schema: [],
},

create(context) {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/jsx-no-constructed-context-values.js
Expand Up @@ -137,6 +137,7 @@ module.exports = {
url: docsUrl('jsx-no-constructed-context-values'),
},
messages,
schema: [],
},

create(context) {
Expand Down
11 changes: 11 additions & 0 deletions lib/rules/jsx-no-useless-fragment.js
Expand Up @@ -94,6 +94,17 @@ module.exports = {
url: docsUrl('jsx-no-useless-fragment'),
},
messages,
schema: [
{
type: 'object',
properties: {
allowExpressions: {
type: 'boolean',
},
},
additionalProperties: false,
},
],
},

create(context) {
Expand Down

0 comments on commit 52cd580

Please sign in to comment.