typescript - VS 代码在每个空格上添加了无用的单词“cons”单词和分号
问题描述
我在 tslint 中添加了一些新规则,但之后我开始收到这些错误,其中 vs 代码在空格上添加“cons”字和分号,并且还用 cons 替换等待中的 wa 或用 cons 作为回报。我不确定为什么会这样。
我尝试从用户设置中的用户设置更改设置还在 tslint 中添加了 "no-trailing-whitespace": false 和 "semicolon": [false, "always"] 规则,但它没有帮助。我还添加了截图的代码。任何帮助将非常感激
下面是我的 tslint 文件
{
"extends": [
"tslint-no-circular-imports",
"tslint-eslint-rules",
"tslint-config-prettier",
"tslint-plugin-prettier",
"tslint:latest"
],
"rules": {
"no-console": [true, "error"],
"object-literal-sort-keys": false,
"quotemark": [false, "avoid-escape"],
"semicolon": [false, "always"],
"indent": [true, "spaces", 4],
"no-var-keyword": true,
"no-default-export": true,
"trailing-comma": [false],
"object-literal-key-quotes": false,
"arrow-parens": false,
"space-before-function-paren": false,
"no-unused-variable": true,
"no-return-await": true,
"no-duplicate-imports": true,
"match-default-export-name": true,
"max-line-length": false,
"no-implicit-dependencies": false,
"no-submodule-imports": false,
"no-var-requires": false,
"member-ordering": false,
"ordered-imports": false,
"only-arrow-functions": false,
"no-trailing-whitespace": false,
"triple-equals": false
},
"rulesDirectory": ["node_modules/tslint-eslint-rules/dist/rules"]
}
解决方案
推荐阅读
- firebase - 使用 BigQuery 时,user_pseudo_id 值在对相同数据的不同查询中不一致。有什么我想念的吗?
- python - 需要一种更好的方法来查找要在 beautifulsoup 中使用的标签
- javascript - REACT找不到图像模块
- php - 如何仅访问 php 对象索引
- javascript - Microsoft Graph api - 将文件写入我的 oneDrive
- python - 每当我运行需要 aiohttp 库的代码时出错
- amazon-web-services - 如何将 dynamodb 中新添加的数据传输到 s3 存储桶?
- apache - 当我更改源文件时,为什么我的 localhost 不再更新?
- vba - 循环查找文件夹中具有特定名称的最后修改文件
- python-3.x - TypeError: '<=' 在 'str' 和 'int' 的实例之间不支持,尽管我将 str 转换为 int