简体   繁体   English

从 tslint 迁移

[英]Migration from tslint

How can I uninstall tslint -globaly, and use eslint as a default in my angular projects.如何卸载 tslint -globaly,并在我的 angular 项目中默认使用 eslint。 When, for example I use例如,当我使用

ng new myProj

I want to have eslint.json, but not tslint.json.我想要 eslint.json,而不是 tslint.json。

This isn't supported by the angular cli at the moment because a lot of the custom lints that angular uses need to be ported to eslint and the typescript-eslint plugin. angular cli 目前不支持此功能,因为 angular 使用的许多自定义 lint 需要移植到 eslint 和 typescript-eslint 插件。

This is the repo where the work is being done to migrate to eslint https://github.com/angular-eslint/angular-eslint .这是迁移到 eslint https://github.com/angular-eslint/angular-eslint的工作的仓库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tslint 到 Eslint 迁移 - convert-tslint-to-eslint 命令后出错 - Tslint to Eslint migration - Error after convert-tslint-to-eslint command “TSLint 仍然存在”=> 从 TSlint 升级到 ESLint - “TSLint still there” => upgrading from TSlint to ESLint Tslint 到 ESLint 迁移错误:未知选项 '--remove-tslint-if-no-more-tslint-targets' - Tslint to ESLint Migration Error : unknown option '--remove-tslint-if-no-more-tslint-targets' Nx Angular TSLint 到 ESLint 迁移后的 Lint 错误 - Nx Angular Lint Error after TSLint to ESLint Migration 你怎么能抑制来自npm链接包的tslint警告? - How can you suppress tslint warnings from npm linked packages? Angular 12 从 tslint 切换到 eslint 后模板 linting 不起作用 - Angular 12 template linting not working after switchting from tslint to eslint 解析时:codelyzer@0.0.28 npm ERR:已找到。 tslint@6.1.3 npm 错误。 node_modules/tslint npm 错误! 来自根项目的可选 tslint@"6.1.3" - While resolving: codelyzer@0.0.28 npm ERR! Found: tslint@6.1.3 npm ERR! node_modules/tslint npm ERR! optional tslint@"6.1.3" from the root project 对TSLint的怀疑 - Doubts with TSLint 从角度5到角度7的迁移 - migration from angular 5 to angular 7 从RXJS 5迁移到6 - IntervalObservable - Migration from RXJS 5 to 6 - IntervalObservable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM