小编Gar*_*B96的帖子

使用tsconfig的tsc不会执行任何操作。我究竟做错了什么?

我的目录有2个文件:一个tsconfig.json带有简单文件{},一个带有一行的hello.ts,其内容为console.log('help!!');

当我运行时,tsc hello我得到了hello.js预期的额外收益。

如果我删除hello.js并运行tsc以获取我的配置,那么我什么也收不到。没有错误消息,没有hello.js。我确定我容易错过一些事情!

注意:我的hypersimple tsconfig仅用于此讨论。我尝试了几种选择,包括使用创建的简单选择tsc --init。我不想files专门包含它,但已按照记录整理tsc了文件夹中的所有文件

typescript tsc tsconfig

5
推荐指数
0
解决办法
926
查看次数

如何覆盖我的 nx 工作区中的 eslint 规则?

如何覆盖 中的 eslint 规则plugin:@nrwl/nx/typescript?我已对 的根目录进行了此更改.eslintrc.json

\n
"rules": {\n  "@typescript-eslint/member-ordering": "warn"\n},\n
Run Code Online (Sandbox Code Playgroud)\n

并且在引入违反规则的演示后仍然出现错误

\n
D:\\me\\sample\\apps\\my-app\\src\\app\\app.component.ts\n  16:3  error  Member outOfOrder should be declared before all instance method definitions  @typescript-eslint/member-ordering\n\n\xe2\x9c\x96 1 problem (1 error, 0 warnings)\n\nLint errors found in the listed files.\n
Run Code Online (Sandbox Code Playgroud)\n

我也尝试将规则更改添加到overrides打字稿部分。

\n

typescript eslint nrwl-nx

5
推荐指数
1
解决办法
6988
查看次数

如果没有安装node.js,Visual Studio 2013如何编译TypeScript文件?

我将TypeScript与Visual Studio Code和tsc CLI一起使用,并在该环境中安装了node.js. 我一直认为tsc是一个javascript程序,所以我开始想知道Visual Studio 2013如何在没有安装node.js的情况下编译ts文件.我在Program Files中看到tsc为一个164KB的exe文件,这样可以解释它如何在没有node.js的情况下运行,但现在我想知道那个exe是什么.tsc最终不是javascript程序吗?

visual-studio typescript

4
推荐指数
1
解决办法
226
查看次数

标签 统计

typescript ×3

eslint ×1

nrwl-nx ×1

tsc ×1

tsconfig ×1

visual-studio ×1