`@block` imports are too sensitive about missing semicolons

未关闭
#236 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
css, typescript
领域
frontend, web-dev

调研方向

找到处理 @block 导入行的解析器,并复现一个不带末尾分号的导入。检查换行符如何终止文件路径,然后为可省略分号的形式添加覆盖测试,并确认后续行不再包含在查找错误中。

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

描述

Expected

Semicolons should be optional at the end of @block import lines. Ex:

Actual

Throws a confusing lookup path error because the parser does not consider \n to be a terminating char. Following lines are accidentally considered part of the file path.

主要语言
TypeScript
星标
6.3k
派生
154
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

linkedin/css-blocks 的其他 Issue

查看 linkedin/css-blocks 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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