Skip to content

Commit

Permalink
ci(npm): lint 增加 tsc 的检查 (Tencent#291)
Browse files Browse the repository at this point in the history
94dreamer authored Jan 27, 2022
1 parent 4177514 commit 7cce7a0
Showing 3 changed files with 45 additions and 9 deletions.
47 changes: 40 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,48 @@
- Component Name: Describe what kind of issues you've done. [pr xxx](pr url),[#xxx](issue url),[your github name](your github homepage)
<!--
首先,感谢你的贡献!😄
请阅读并遵循 [TDesign 贡献指南](https://github.com/Tencent/tdesign/blob/main/docs/contributing.md),填写以下 pull request 的信息。
PR 在维护者审核通过后会合并,谢谢!
-->

- 组件名称:处理问题或特性描述,[pr xxx](pr地址)[#xxx](issue地址)[贡献者姓名](贡献者 github 主页)
### 🤔 这个 PR 的性质是?

--------
<!--
我们的大致分类有
日常 bug 修复 | 新特性提交 | 文档改进 | 演示代码改进 | 组件样式/交互改进 | CI/CD改进 |
重构 | 代码风格优化 |测试用例 | 分支合并 |其他
-->

**brefore**
- [ ] 是关于什么的改动?

.....
### 🔗 相关 Issue

<!--
1. 描述相关需求的来源,如相关的 issue 讨论链接。
-->

**after**
### 💡 需求背景和解决方案

<!--
1. 要解决的具体问题。
2. 列出最终的 API 实现和用法。
3. 涉及UI/交互变动需要有截图或 GIF。
-->

......
### 📝 更新日志

<!--
从用户角度描述具体变化,以及可能的 breaking change 和其他风险。
-->

- fix(组件名称): 处理问题或特性描述 ...

- [ ] 本条 PR 不需要纳入 Changelog

### ☑️ 请求合并前的自查清单

⚠️ 请自检并全部**勾选全部选项**。⚠️

- [ ] 文档已补充或无须补充
- [ ] 代码演示已提供或无须提供
- [ ] TypeScript 定义已补充或无须补充
- [ ] Changelog 已提供或无须提供
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -47,7 +47,8 @@
"build:tsc-lib": " tsc --emitDeclarationOnly -d --outDir lib/",
"postbuild": "node script/postbuild.js",
"lint:fix": "eslint --ext .vue,.js,.ts,.tsx ./ --max-warnings 0 --fix",
"lint": "eslint --ext .vue,.js,.ts,.tsx ./ --max-warnings 0",
"lint": "npm run lint:tsc && eslint --ext .vue,.js,.ts,.tsx ./ --max-warnings 0",
"lint:tsc": "tsc --emitDeclarationOnly",
"test": "npm run test:unit && npm run test:node",
"test:update": "npm run test:unit-update && npm run test:node-update",
"test:unit": "jest --config script/test/jest.unit.conf.js",
@@ -189,4 +190,4 @@
"npm run lint:fix"
]
}
}
}
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@
"scripthost"
],
"target": "esnext",
"outDir": "lib",
"declaration": true,
"module": "esnext",
"moduleResolution": "node",
"isolatedModules": false,

0 comments on commit 7cce7a0

Please sign in to comment.