Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: remove unnecessary schema from require-render-return #2341

Closed
wants to merge 1 commit into from

Conversation

bradzacher
Copy link
Contributor

I noticed that there was a schema defining an empty object - it's an unnecessary definition, so remove it.

@@ -21,7 +21,7 @@ module.exports = {
recommended: true,
url: docsUrl('require-render-return')
},
schema: [{}]
schema: []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like it'd be a breaking change, in case someone had already been providing an empty object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it technically would be breaking in the strictest sense.
Though reviewing the history, this has been an empty object for 3 years, so I doubt there's some legacy config people have left over.

The problem is that this schema value doesn't just allow an empty object, it allows literally value.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes - i agree that's a problem, however, that means that removing this would cause eslint to crash on a config that was previously working :-/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
semver-major Breaking change.
Development

Successfully merging this pull request may close these issues.

2 participants