簡體   English   中英

Angular中的ng lint --format = stylish和ng lint有什么區別

[英]What is difference between `ng lint --format=stylish` and `ng lint` in Angular

我正在執行ng lint命令,還檢查了ng lint --help但是我找不到ng lint --format=proseng lint --format=stylish之間的任何區別。 我找不到相同的任何文檔。請幫助我。 任何人都可以提供指向相同文檔的鏈接。

在tslint,你有幾個格式可用

這些格式化程序用於格式化tslint的輸出。 散文是簡單的人類可讀的輸出,而時尚是另一種人類可讀的輸出。

ng lint 在 Angular 14 中引發節點錯誤:UnhandledPromiseRejectionWarning:#<object><div id="text_translate"><p> 我將我的應用程序從 Angular 13 升級到 14,現在當我嘗試使用安裝了最新 eslint 的<strong>ng lint</strong>命令時,出現此錯誤:</p><pre> (node:15376) UnhandledPromiseRejectionWarning: #&lt;Object&gt; (Use `node --trace-warnings...` to show where the warning was created) (node:15376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with.catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:15376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.</pre><p> 我不知道如何解決這個問題,而無需降級回 13。這是我的 devDependencies:</p><pre> "devDependencies": { "@angular-devkit/build-angular": "^14.2.1", "@angular-eslint/builder": "14.0.3", "@angular-eslint/eslint-plugin": "14.0.3", "@angular-eslint/eslint-plugin-template": "14.0.3", "@angular-eslint/schematics": "14.0.3", "@angular-eslint/template-parser": "14.0.3", "@angular/cli": "^14.2.1", "@angular/compiler-cli": "^14.2.0", "@angular/language-service": "^14.2.0", "@ngxs/devtools-plugin": "~3.7.1", "@progress/kendo-licensing": "~1.2.2", "@types/lodash": "~4.14.168", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", "@webcomponents/custom-elements": "^1.4.3", "eslint": "^8.18.0", "eslint-plugin-deprecation": "^1.3.2", "typescript": "^4.6.4" }</pre></div></object>

[英]ng lint throws Node error in Angular 14: UnhandledPromiseRejectionWarning: #<Object>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

相關問題 Angular 6 ng lint combineLatest 已棄用 帶有 Angular 7 和 `ng lint` 的 TypeScript 中的自定義 TSLint 規則 角度4,使皮棉錯誤致命 在文件保存時將 Angular 配置為“ng lint” 不確定如何在角度項目中使用 ng lint 如何在 angular 項目中調試 ng lint broken angular 項目中 ng lint 期間未處理的異常 “ng lint”安靜選項? ng lint 在 Angular 14 中引發節點錯誤:UnhandledPromiseRejectionWarning:#<object><div id="text_translate"><p> 我將我的應用程序從 Angular 13 升級到 14,現在當我嘗試使用安裝了最新 eslint 的<strong>ng lint</strong>命令時,出現此錯誤:</p><pre> (node:15376) UnhandledPromiseRejectionWarning: #&lt;Object&gt; (Use `node --trace-warnings...` to show where the warning was created) (node:15376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with.catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:15376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.</pre><p> 我不知道如何解決這個問題,而無需降級回 13。這是我的 devDependencies:</p><pre> "devDependencies": { "@angular-devkit/build-angular": "^14.2.1", "@angular-eslint/builder": "14.0.3", "@angular-eslint/eslint-plugin": "14.0.3", "@angular-eslint/eslint-plugin-template": "14.0.3", "@angular-eslint/schematics": "14.0.3", "@angular-eslint/template-parser": "14.0.3", "@angular/cli": "^14.2.1", "@angular/compiler-cli": "^14.2.0", "@angular/language-service": "^14.2.0", "@ngxs/devtools-plugin": "~3.7.1", "@progress/kendo-licensing": "~1.2.2", "@types/lodash": "~4.14.168", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", "@webcomponents/custom-elements": "^1.4.3", "eslint": "^8.18.0", "eslint-plugin-deprecation": "^1.3.2", "typescript": "^4.6.4" }</pre></div></object> 在Angular中用多個項目遷移TSLint到ESLint,ng lint命令掛起
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM