[英]error in Tslint upgrading
Hi I am unable to get through this error please help me with this error and I have tried sudo apt-get install nodejs legacy and etc but was not able to find the solution 嗨,我无法解决此错误,请帮助我解决此错误,我尝试了sudo apt-get install nodejs legacy等,但无法找到解决方案
TS build-rt
/home/gautam/sd.js-master/node_modules/tslint/lib/ruleLoader.js:29
throw new Error(ERROR_MESSAGE);
^
Error:
Could not find implementations for the following rules specified in the configuration:
no-trailing-comma
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.
at Object.loadRules (/home/gautam/sd.js-master/node_modules/tslint/lib/ruleLoader.js:29:15)
at Linter.lint (/home/gautam/sd.js-master/node_modules/tslint/lib/tslint.js:59:44)
at processFile (/home/gautam/sd.js-master/node_modules/tslint/lib/tslint-cli.js:138:29)
at /home/gautam/sd.js-master/node_modules/tslint/lib/tslint-cli.js:177:74
at Array.forEach (native)
at Object.<anonymous> (/home/gautam/sd.js-master/node_modules/tslint/lib/tslint-cli.js:177:41)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
make: *** [build-rt] Error 1
The no-trailing-comma rule was removed, it has been replaced by the trailing-comma rule (#687) 删除了无尾逗号规则,已将其替换为尾逗号规则(#687)
EDIT: In your /tslint.json file remove the use of "no-trailing-comma". 编辑:在您的/tslint.json文件中,删除“ no-trailing-逗号”的使用。 It can be replaced with the new "trailing-comma" rule which you can find more about here: https://palantir.github.io/tslint/rules/trailing-comma/ 可以将其替换为新的“ trailing-逗号”规则,您可以在此处找到更多信息: https : //palantir.github.io/tslint/rules/trailing-comma/
The new rule adds options for multiline and singleline, which can be "always" or "never": 新规则为多行和单行添加了选项,可以“始终”或“从不”:
"trailing-comma": [true,
{
"multiline": "always",
"singleline": "never"
}
],
If you just want to turn it off you can add this: 如果只想将其关闭,则可以添加以下内容:
"trailing-comma": [false],
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.