简体   繁体   English

“TSLint 仍然存在”=> 从 TSlint 升级到 ESLint

[英]“TSLint still there” => upgrading from TSlint to ESLint

I'm working on angular 10 project, which was upgraded to angular 12. TSLint is no longer used in angular 12, but since that project was upgraded to angular 12, it still has tslint.json and its packages.我正在处理 angular 10 项目,该项目已升级到 angular 12。TSLint 不再用于 angular 12,但由于该项目已升级到 angular 12,它仍然有tslint.json及其包。 How do I remove it?如何删除它? The project uses prettier as well.该项目也使用了prettier。

package.json包.json

{
  "name": "academic-schedule",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "format:check": "prettier \"src/{app,environments}/**/*{.ts,.html,.json,.scss}\" --check",
    "format:write": "prettier \"src/{app,environments}/**/*{.ts,.html,.json,.scss}\" --write"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^12.1.1",
    "@angular/cdk": "^12.1.1",
    "@angular/common": "^12.1.1",
    "@angular/compiler": "^12.1.1",
    "@angular/core": "^12.1.1",
    "@angular/flex-layout": "^12.0.0-beta.34",
    "@angular/forms": "^12.1.1",
    "@angular/http": "^7.2.16",
    "@angular/material": "^12.1.1",
    "@angular/platform-browser": "^12.1.1",
    "@angular/platform-browser-dynamic": "^12.1.1",
    "@angular/router": "^12.1.1",
    "@fullcalendar/angular": "^5.8.0",
    "@fullcalendar/daygrid": "^5.8.0",
    "core-js": "^3.15.2",
    "jwt-decode": "^3.1.2",
    "primeflex": "^2.0.0",
    "primeicons": "^4.1.0",
    "primeng": "^11.4.3",
    "rxjs": "^7.2.0",
    "rxjs-compat": "^6.6.7",
    "tslib": "^2.3.0",
    "zone.js": "^0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^12.1.1",
    "@angular/cli": "^12.1.1",
    "@angular/compiler-cli": "^12.1.1",
    "@angular/language-service": "^12.1.1",
    "@types/jasmine": "^3.7.7",
    "@types/jasminewd2": "^2.0.9",
    "@types/node": "^16.0.0",
    "codelyzer": "^6.0.2",
    "jasmine-core": "^3.8.0",
    "jasmine-spec-reporter": "^7.0.0",
    "karma": "^6.3.4",
    "karma-chrome-launcher": "^3.1.0",
    "karma-cli": "^2.0.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "^4.0.1",
    "karma-jasmine-html-reporter": "^1.6.0",
    "prettier": "^2.3.2",
    "protractor": "^7.0.0",
    "rxjs-tslint": "^0.1.8",
    "ts-node": "~8.3.0",
    "tslint": "^6.1.3",
    "typescript": "^4.3.5",
    "webpack": "^5.42.1"
  }
}

Can this offer a solution Nx: Migrating Angular Applications From TSLint to ESLint ?这能提供一个解决方案Nx:将 Angular 应用程序从 TSLint 迁移到 ESLint吗?

Hope this helps !希望这可以帮助 ! Take care & good luck!保重,祝你好运!

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

相关问题 ESLint类似于TSLint中的全局变量 - ESLint like globals in TSLint Tslint 到 Eslint 迁移 - convert-tslint-to-eslint 命令后出错 - Tslint to Eslint migration - Error after convert-tslint-to-eslint command 升级到 EsLint:angular.json 出错(原理图:convert-tslint-to-eslint) - Upgrading to EsLint: Error with angular.json (schematics:convert-tslint-to-eslint) Angular 12 从 tslint 切换到 eslint 后模板 linting 不起作用 - Angular 12 template linting not working after switchting from tslint to eslint Tslint 到 ESLint 迁移错误:未知选项 &#39;--remove-tslint-if-no-more-tslint-targets&#39; - Tslint to ESLint Migration Error : unknown option '--remove-tslint-if-no-more-tslint-targets' 从 tslint 迁移 - Migration from tslint 如何运行@angular-eslint/schematics:convert-tslint-to-eslint - How to run @angular-eslint/schematics:convert-tslint-to-eslint 从 TSLint 迁移到 ESLint 和 ESLint 导致解析错误:Unexpected token &lt; and does not check.ts files in angular v12 - Migrated from TSLint to ESLint and ESLint causes parsing error: Unexpected token < and does not check .ts files in angular v12 npm WARN deprecated tslint@6.1.2: TSLint 已被弃用,取而代之的是 ESLint - npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint Nx Angular TSLint 到 ESLint 迁移后的 Lint 错误 - Nx Angular Lint Error after TSLint to ESLint Migration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM