Skip to content

chore: Wave 4 — Migrate TSLint → ESLint, update test tooling, remove Protractor#429

Open
tobydrinkall wants to merge 1 commit into
upgrade/angular-corefrom
upgrade/test-lint
Open

chore: Wave 4 — Migrate TSLint → ESLint, update test tooling, remove Protractor#429
tobydrinkall wants to merge 1 commit into
upgrade/angular-corefrom
upgrade/test-lint

Conversation

@tobydrinkall

@tobydrinkall tobydrinkall commented Jul 2, 2026

Copy link
Copy Markdown

Summary

Completes Wave 4 of the Angular 9→20 upgrade: replaces the deprecated lint/test/e2e toolchain with modern equivalents.

TSLint → ESLint migration:

  • Removes tslint, codelyzer, tslint.json
  • Adds ESLint 9 flat config (eslint.config.js) with angular-eslint + typescript-eslint
  • Updates angular.json lint architect from @angular-devkit/build-angular:tslint@angular-eslint/builder:lint
  • Relaxes prefer-standalone (existing module-based code), accessibility rules set to warn

Test tooling update:

  • karma 4.1→6.4, jasmine-core 3.4→5.1, karma-jasmine 2.0→5.1
  • Replaces karma-coverage-istanbul-reporter with karma-coverage ~2.2
  • @types/jasmine 3.3→5.1, @types/node ^12→^20, ts-node 7.0→10.9
  • Removes deprecated require.context() pattern from src/test.ts

Protractor removal:

  • Deletes e2e/ directory, removes protractor dep, removes e2e architect target and script

Code fixes to satisfy new lint rules:

  • Removes unused Observable import, prefixes unused catch params with _
  • Renames <item> selector → <app-item> (component-selector rule)
  • Auto-fixed letconst where applicable

Added spec files:

  • app.component.spec.ts — smoke tests for AppComponent creation
  • comment.pipe.spec.ts — unit tests for CommentPipe transform logic

All 6 tests pass, build succeeds, lint exits 0 (warnings only).

Link to Devin session: https://app.devin.ai/sessions/15a0c4a1bf2e4414b1dd6ebac6de959d
Requested by: @tobydrinkall


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)
Open in Devin Review

- Remove tslint, codelyzer, protractor from devDependencies
- Delete tslint.json and e2e/ directory
- Add ESLint 9 flat config with angular-eslint and typescript-eslint
- Update angular.json lint builder to @angular-eslint/builder:lint
- Update karma to ~6.4.0, jasmine-core to ~5.1.0, karma-jasmine to ~5.1.0
- Replace karma-coverage-istanbul-reporter with karma-coverage ~2.2.0
- Update @types/jasmine to ~5.1.0, @types/node to ^20.0.0, ts-node to ~10.9.0
- Update karma.conf.js to use karma-coverage
- Fix test.ts to remove deprecated require.context pattern
- Fix lint errors: unused imports, prefer-const, component selector prefix
- Add smoke tests for AppComponent and CommentPipe

Co-Authored-By: Toby Drinkall <toby.drinkall@cognition.ai>
@tobydrinkall tobydrinkall self-assigned this Jul 2, 2026
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant