你好呀,
我正在使用 tslint 版本 2.5.1 在 Windows 10 上运行,并且在尝试对文件进行 lint 时出现以下错误
undefined:1
?{
^
SyntaxError: Unexpected token ?
at Object.parse (native)
at Object.findConfiguration (C:\...\node_modules\tslint\bin\tslint-cli.js:50424:29)
at processFile (C:\...\recorder\node_modules\tslint\bin\tslint-cli.js:50885:48)
at Lint (C:\...\node_modules\tslint\bin\tslint-cli.js:50906:9)
at Object.<anonymous> (C:\...\node_modules\tslint\bin\tslint-cli.js:50908:3)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
知道是什么原因造成的吗?
最有用的评论
@adidahiya我已经使用 UTF-8 编码从这个存储库中保存了示例文件,
谢谢你的提示