Remove deprecated TypeScript baseUrl from frontend configs

未关闭 适合新手
#1,802 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
90/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
json, typescript
领域
build-system

调研方向

阅读 frontend/tsconfig.json 和 frontend/tsconfig.node.json,然后检查现有的 paths 条目在没有 baseUrl 时如何解析。从两个配置中移除已弃用的选项,并运行项目的类型检查;当两个配置都通过检查,且 @/* 别名仍按 issue 中的描述解析时,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug enhancement
Problem
  • TypeScript 6.0 deprecates the baseUrl compiler option. Editors using TypeScript 6.0 can flag "baseUrl": "." in frontend/tsconfig.json and frontend/tsconfig.node.json.
  • Both configs already map @/* to ./src/*, which TypeScript resolves relative to each config file when baseUrl is omitted.
Proposed Solution or Cleanup:

Remove "baseUrl": "." from both configs and keep the existing paths entries. This resolves the deprecation without requiring a TypeScript version bump.

Screenshots:

PictoPy Right Now:

Screenshot 2026-12-01 at 11 45 28 AM

{Throwing Warnings}

Problem Solution and Explaination:
  • Keeping baseUrl: "."( current ) — @/utils/dateUtils goes to frontend/src/utils/dateUtils.ts. TypeScript also treats frontend/ as an extra place to look for imports like utils/dateUtils without the @/.

  • Remove baseUrl( Proposed Cleanup ) — @/utils/dateUtils goes to the same file because paths already maps @/* to ./src/*. The extra lookup in frontend/ goes away.

PictoPy’s imports didn’t need that extra lookup, so removing it clears the deprecation without changing how the app works.

Verification

I tested the two-line removal locally with the project's TypeScript 5.1.6. Both configs passed type checking. Frontend lint, formatting, and all 502 Jest tests passed.

TypeScript 6.0 release notes

主要语言
Python
星标
322
派生
793
平均合并
6 天 10 小时
30 天内合并 PR
20

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AOSSIE-Org/PictoPy 的其他 Issue

查看 AOSSIE-Org/PictoPy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。