-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove useless additionalItems: false
from padding-line-between-statements schema
#15706
chore: remove useless additionalItems: false
from padding-line-between-statements schema
#15706
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This is a non-breaking change because those two additionalItems: false
were just ignored. Validation works the same with and without them. For clarity, ESLint uses Ajv 6 without strict checks, so this error doesn't appear anywhere. Still, additionalItems: false
is indeed useless when the array is not a tuple, so it's better to remove it to avoid confusion about the intent.
additionalItems: false
from padding-line-between-statements schema
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`8.11.0` -> `8.12.0`](https://renovatebot.com/diffs/npm/eslint/8.11.0/8.12.0) | --- ### Release Notes <details> <summary>eslint/eslint</summary> ### [`v8.12.0`](https://github.com/eslint/eslint/releases/v8.12.0) [Compare Source](eslint/eslint@v8.11.0...v8.12.0) #### Features - [`685a67a`](eslint/eslint@685a67a) feat: fix logic for top-level `this` in no-invalid-this and no-eval ([#​15712](eslint/eslint#15712)) (Milos Djermanovic) #### Chores - [`18f5e05`](eslint/eslint@18f5e05) chore: padding-line-between-statements remove useless `additionalItems` ([#​15706](eslint/eslint#15706)) (Martin Sadovy) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot <cabr2.help@gmail.com> Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1256 Reviewed-by: Epsilon_02 <epsilon_02@noreply.codeberg.org> Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org> Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
…onalItems` (eslint#15706)" This reverts commit ff58798.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[X] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
Tell us about your environment:
What changes did you make? (Give an overview)
If you run AJV in strict mode, you will get error:
see https://github.com/ajv-validator/ajv/blob/master/docs/json-schema.md
Note: Many another rule schemas are not 100% valid in strict mode. This is just one of them.