"TSLint still there" => 从 TSlint 升级到 ESLint
"TSLint still there" => upgrading from TSlint to ESLint
我正在开发 angular 10 项目,该项目已升级到 angular 12。angular 12 中不再使用 TSLint,但自从该项目升级到 angular 12,它还有tslint.json
和它的包。我该如何删除它?该项目也使用了 prettier。
package.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"
}
}
这可以提供解决方案吗Nx: Migrating Angular Applications From TSLint to ESLint?
希望对您有所帮助!保重,祝你好运!
我正在开发 angular 10 项目,该项目已升级到 angular 12。angular 12 中不再使用 TSLint,但自从该项目升级到 angular 12,它还有tslint.json
和它的包。我该如何删除它?该项目也使用了 prettier。
package.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"
}
}
这可以提供解决方案吗Nx: Migrating Angular Applications From TSLint to ESLint?
希望对您有所帮助!保重,祝你好运!