Repository navigation
[Port dspace-9_x] Fix max-classes-per-file disable comments for typescript-eslint 8.72 - #6558
Open
bram-atmire wants to merge 1 commit into
Open
bram-atmire wants to merge 1 commit into
bram-atmire wants to merge 1 commit into
Conversation
typescript-eslint 8.72.0 includes leading comments in the Program range (typescript-eslint/typescript-eslint#12991), so max-classes-per-file now reports at 1:1. A "// eslint-disable-next-line" on line 1 or an "eslint-disable" block after the license header no longer covers that position. Use a "/* eslint-disable max-classes-per-file */" block on line 1, as the other files already do. Works with typescript-eslint 8.71 and 8.72. Assisted-by: Claude Code [claude-opus-5-5] (cherry picked from commit 9042fa6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
dspace-9_xDescription
Same change as #6555: in 13 files the
max-classes-per-filedisable comment is replaced by/* eslint-disable max-classes-per-file */on line 1, so lint passes with typescript-eslint 8.72.0. No code changes.The cherry-pick needed small conflict resolutions because of import differences on this branch.
listable-object.decorator.spec.tsalready had the file-level disable on line 1 here, so it is unchanged (13 files instead of 14 onmain).Instructions for Reviewers
npm run lintpasses, as before.npm run lintpasses too. Without this PR it fails with the same 13max-classes-per-fileerrors as the Dependabot PR's CI.AI Disclosure (REQUIRED)
Were AI tools used in the creation of this PR?
Claude Code (claude-opus-5-5) cherry-picked the commit from #6555, resolved the conflicts and ran the checks: full lint with the branch's typescript-eslint 8.71.2 and with the Dependabot 8.72.0 lockfile, both passing, and the same 8.72.0 run on the unfixed branch reproducing the 13 CI errors. I reviewed the change and this description.
Human review didn't reveal specific logical problems or code issues.
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.