Lau*_*RTE 17 gruntjs typescript eslint
我继承了一个旧的AngularJs应用程序,它使用遗留工具:Bower和grunt。
\n当我运行时grunt serve --reload,我收到以下警告消息:
WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.\n\nYou may find that it works just fine, or you may not.\n\nSUPPORTED TYPESCRIPT VERSIONS: ~2.3.2\n\nYOUR TYPESCRIPT VERSION: 2.2.2\n\nPlease only submit bug reports when using the officially supported version.\nRun Code Online (Sandbox Code Playgroud)\n这很奇怪,因为我使用最新版本的 Typescript:
\nWARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.\n\nYou may find that it works just fine, or you may not.\n\nSUPPORTED TYPESCRIPT VERSIONS: ~2.3.2\n\nYOUR TYPESCRIPT VERSION: 2.2.2\n\nPlease only submit bug reports when using the officially supported version.\nRun Code Online (Sandbox Code Playgroud)\n我假设打字稿是本地安装的。是否可以?
\n如何查看已安装的工具版本(tsc和eslint)?
如何升级?值得吗?
\n编辑:依赖列表
\ntsc --version\nVersion 4.1.3\nRun Code Online (Sandbox Code Playgroud)\n编辑:咕噜版本
\n我正在使用 grunt 的“旧”版本:
\n> npm list\nfoo@16.17.12 /Users/llaporte/workspace/foo\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular-animate@1.5.9\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular-gettext@2.1.32\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular-material@1.1.58\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular-sanitize@1.3.7\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular-ui-router@1.1.40\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/angular@1.6.43\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/es6-shim@0.31.35\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/jasmine@2.8.6\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/jquery@2.0.49\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/ramda@0.25.51\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/underscore.string@0.0.30\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/underscore@1.8.7\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @types/urijs@1.15.36\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @typescript-eslint/eslint-plugin@4.14.2\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 @typescript-eslint/parser@4.14.2\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 grunt-bar@1.2.0 (git+http://xxx/xxx/grunt-bar.git#a6b7624aeea9ea324e92a9e8971feb67ab9d0346)\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 typescript@4.1.3\nRun Code Online (Sandbox Code Playgroud)\n
小智 21
// .eslintrc.json
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false
},
Run Code Online (Sandbox Code Playgroud)
来源:Github问题评论
小智 -3
yarn add -D @typescript-eslint/typescript-estree
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
24770 次 |
| 最近记录: |