Should lint against use of non-explicit dependencies

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
eslint, typescript, webpack

调研方向

先检查 theme-language-server-node 的 package.json 和 tsconfig.json,然后检查现有的 lint 配置,寻找适用于显式依赖的规则。根据暴露 theme-check-common 构建 bug 的依赖使用情况验证该规则,并确认 lint 运行能够捕获非显式依赖,同时不会破坏有效的包。

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

描述

enhancement tech debt

Is your feature request related to a problem? Please describe.
Found a build bug in theme-language-server-node because it was making a require to theme-check-common without it being directly in its package.json. The code worked because it is a dependency of theme-check-node, but the project reference in tsconfig.json file wasn't there, so webpack builds were using both the dist and src code of theme-check-common because of this little mistake.

Describe the solution you'd like

https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md

主要语言
TypeScript
星标
245
派生
108
平均合并
2 天 8 小时
30 天内合并 PR
24

环境准备

从这里开始

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

Shopify/theme-tools 的其他 Issue

查看 Shopify/theme-tools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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