angular - 升级 nx/angular 后,linting 非常慢。插件:导入/不弃用
问题描述
在 nx 升级过程中,项目已从 升级11.2.11
到( )12.2.10
nx migrate
现在,代码 linting 从 30 秒增加到 4 分钟:
time TIMING=1 ng lint my-app
> nx run my-app:lint
Linting "my-app"...
All files pass linting.
Rule | Time (ms) | Relative
:------------------------------------------|-----------:|--------:
import/no-deprecated | 204887.182 | 99.6%
@nrwl/nx/enforce-module-boundaries | 260.016 | 0.1%
@typescript-eslint/naming-convention | 83.345 | 0.0%
max-len | 66.311 | 0.0%
comma-dangle | 40.576 | 0.0%
no-global-assign | 23.094 | 0.0%
@typescript-eslint/no-unused-vars | 22.934 | 0.0%
@typescript-eslint/type-annotation-spacing | 22.831 | 0.0%
no-misleading-character-class | 18.360 | 0.0%
@typescript-eslint/triple-slash-reference | 16.281 | 0.0%
———————————————————————————————————————————————
> NX SUCCESS Running target "lint" succeeded
real 3m41.726s
user 4m19.102s
sys 0m23.049s
"@angular-devkit/build-angular": "12.2.10",
"@angular-eslint/eslint-plugin": "12.3.1",
"@angular-eslint/eslint-plugin-template": "12.3.1",
"@angular-eslint/template-parser": "12.3.1",
"@angular/cli": "12.2.10",
"@angular/compiler-cli": "12.2.10",
"@angular/language-service": "12.2.10",
"@angular/localize": "^12.2.10",
...
"@nrwl/eslint-plugin-nx": "12.10.0",
...
"eslint-plugin-import": "2.22.1",
eslint 设置:"import/no-deprecated": "warn",
是否有任何设置更改或者我应该摆脱这个导入?
解决方案
推荐阅读
- laravel - 如何配置 mail.php 以将电子邮件发送到生产中的真实地址,而不是开发中?
- regex - RegExp - 如果后面跟着一些东西,如何匹配除最后一个之外的所有内容?
- html - 当我单击“AboSee”选项卡时,它会打开选项卡,但不显示选项卡栏
- html - 输入=日期的浮动标签
- ios - 带有可选页面的 SwiftUI TabView PageStyle
- python - 如何使 tkinter 中的小部件根据窗口大小自动调整其大小?
- c++ - 我如何让程序跳回输入(cout)
- javascript - 有没有办法让弹出图像在单击屏幕上的任何位置时关闭,使用 JavaScript 和 jQuery?
- javascript - 为什么说 app.firestore 不是函数?
- javascript - 如何在没有 Vue CLI 的情况下在纯 Typescript 文件中导入 CDN Vue?