This guide is specific to my setup (I use Angular ESLint)
ng update @angular/cli @angular/core @angular-eslint/schematics
This works both for minor and major updates.
After commiting the changes:
- Run every script to ensure they still work
- Launch the app and have a quick browse through
Before embarking on a major upgrade:
- Check that ESLint is supporting the new Angular version
- Check the Angular update guide.
Once you're done with the update, you'll want to create a brand new project to see if common files have been updated.
Install the latest version of the Angular CLI globally:
npm install -g @angular/cli
Create the Angular app (this will create an Angular app in the my-app
directory):
ng new my-app --package-manager yarn
Pick
- Sass (SCSS) not the default
- Don't enable SSR/SSG
Add ESLint:
cd my-app
ng add @angular-eslint/schematics
Compare the below files with the project you're working on:
.vscode\extensions.json
angular.json
package.json
tsconfig.app.json
tsconfig.json
tsconfig.spec.json