更新:我现在看到一条消息已被开发服务器清除:“警告:'无用之前声明'规则需要类型信息。”这会映射到以下问题:https://github.com/wmonk/create-react-app-typescript/issues/126这与上述问题重复。
场景:我在使用tslint.json
创建的项目中使用带有自定义create-react-scripts-ts
的TSLint的VSCode(目前使用react-scripts-ts@2.4.0
)。
VSCode正在忽略tslint.json
条目"no-use-before-declare"
设置(我将其设置为false
)。
问题:我该如何调试? (例如,我在哪里可以看到VSCode正在读取什么来获取其tslint设置?可能以某种方式指向错误的文件,或者发生了其他一些覆盖)。
StackOverflow编辑器不允许我粘贴tslint文件,因为它会使帖子过于平衡代码内容(!)。所以这里有几个片段:
```
{
"extends": ["tslint-react"],
"rules": {
"align": [true, "parameters", "statements"],
...
"no-use-before-declare": false,
}
}
```