Repository navigation
Conversation
… to .ts Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
This branch has not been deployed
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.
Hi, thanks for keeping this issue open; here is a patch that addresses it.
Description
This is a first, deliberately small step on #1755. It renames the four files in
src/errorsfrom.tsxto.ts:errors,index,typesanderrors.test. None of them contains JSX, and the content of each file is unchanged (git diff -Mshows 4 renames with no content change, plus one word inAGENTS.md).Imports of this directory are written without an extension (for example
from "../errors"andfrom "../errors/errors"), so no import had to change. The one place that named a file by path wasAGENTS.md(src/errors/errors.tsx), which now sayserrors.ts; I grepped the text-complete checkout and found no config or script that names them.I kept it to one directory on purpose. There are a few hundred more
.tsxfiles without JSX, and since the contributing guide asks to discuss larger changes first, I did not want to send a very large rename unasked. If you prefer the rest of #1755 as one PR, or one directory at a time like this, I can do it either way.Related Issue
Refs #1755
The open dependency PR #2677 also contains "#1755", but that is secretlint's own issue number in its release notes and has nothing to do with this one.
Documentation PR
Not applicable, no behavior or documentation changes.
Type of Change
Testing
Run in a fresh checkout of main with the change applied:
bun test src/errorspasses (14 tests, same as before the rename)bun test(whole suite): 5269 pass, 6 skip, 3 fail. The 3 failures are in the feedback screenshot tests (feedback (fixture-backed)andfeedback (request contract)). With the four renames reverted on the same commit the whole suite also gives 5269 pass, 6 skip, 3 fail, so I read them as already failing on main (I compared the counts, not each test name).bun run typecheckbun run lint:checkbun run format:checkbun run auditbun run secrets:checkbun run buildbun run test:e2e) not run: the change touches no deployment or AWS code.