-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to Angular 18 #160
Open
m-akinc
wants to merge
14
commits into
ni:main
Choose a base branch
from
m-akinc:angular18
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update to Angular 18 #160
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m-akinc
requested review from
jattasNI,
mure,
rajsite and
TrevorKarjanis
as code owners
January 7, 2025 23:15
m-akinc
commented
Jan 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't submit until ready to update clients.
jattasNI
requested changes
Jan 8, 2025
change/@ni-eslint-config-angular-718354fd-7ab1-4395-ac53-e8505b9622bf.json
Show resolved
Hide resolved
change/@ni-eslint-config-angular-718354fd-7ab1-4395-ac53-e8505b9622bf.json
Show resolved
Hide resolved
change/@ni-eslint-config-angular-718354fd-7ab1-4395-ac53-e8505b9622bf.json
Show resolved
Hide resolved
m-akinc
commented
Jan 8, 2025
jattasNI
reviewed
Jan 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but withholding final approval until we're ready to start the release train.
rajsite
reviewed
Jan 23, 2025
…ject config" This reverts commit dbe3a88.
rajsite
approved these changes
Feb 3, 2025
jattasNI
approved these changes
Feb 3, 2025
change/@ni-eslint-config-angular-718354fd-7ab1-4395-ac53-e8505b9622bf.json
Show resolved
Hide resolved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #157
In addition to updating the dependency version, I'm fixing the following:
Implementation
Updated dependencies:
@angular/core
to18.2.13
(latest <19)@angular-eslint
packages to18.4.3
(latest <19)@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
to7.18.0
(latest <8)@typescript-eslint/parser
, I began getting the following test failure:@typescript-eslint/prefer-optional-chain
now does require type checking, so I had to move it to therequiring-type-checking.js
configuration.@typescript-eslint/eslint-plugin
version 6 introduced significant changes. Inrequiring-type-checking.js
, I changed it from extending@typescript-eslint/recommended-requiring-type-checking
to@typescript-eslint/recommended-type-checked
and@typescript-eslint/stylistic-type-checked
. Similarly, ineslint-config-typescript/index.js
, I added@typescript-eslint/stylistic
to the extended configs. Subsequently, the output ofnpm run print-evaluated-rules:diff
showed over a dozen changes. I added overrides to minimize the scope of changes in this PR, and ultimately ended up with the following diff:@typescript-eslint/consistent-generic-constructors
is new ("error") -- Despite adding an override to turn this rule off, it remains on. This may be a bug in@typescript-eslint
. I don't think we want to let this block us, so clients should either fix reported violations or use in-source suppressions.@typescript-eslint/lines-between-class-members
was["error","always",{"exceptAfterSingleLine":true}]
, now is["error","always",{"exceptAfterSingleLine":true,"exceptAfterOverload":true}]
-- This seems like a harmless difference.no-new-native-nonconstructor
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@typescript-eslint/no-duplicate-enum-values
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@typescript-eslint/no-unsafe-declaration-merging
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@typescript-eslint/no-duplicate-type-constituents
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@typescript-eslint/no-redundant-type-constituents
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@typescript-eslint/no-unsafe-enum-comparison
is new ("off") -- Explicitly turning off this new rule that defaulted to "error".@angular-eslint/runtime-localize
is new ("error") -- We specifically want this enabled.Testing
npm run print-evaluated-rules:diff
and handled differences as described above.npm run print-available-rules
with these changes:@typescript-eslint/no-duplicate-imports
- removed from TS Extensions@typescript-eslint/class-methods-use-this
- added to TS Extensions@typescript-eslint/max-params
- added to TS Extensions@typescript-eslint/prefer-ts-expect-error
- moved from TS Recommended to Remaining TS Rules@typescript-eslint/prefer-optional-chain
- moved from TS Recommended to TS Recommended (Requiring Type Checks)@typescript-eslint/no-implicit-any-catch
- removed from Remaining TS Rules@typescript-eslint/no-parameter-properties
- removed from Remaining TS Rules@typescript-eslint/sort-type-union-intersection-members
- removed from Remaining TS Rules@typescript-eslint/no-empty-object-type
- added to Remaining TS Rules@typescript-eslint/no-unnecessary-parameter-property-assignment
- added to Remaining TS Rules@typescript-eslint/no-unsafe-function-type
- added to Remaining TS Rules@typescript-eslint/no-wrapper-object-types
- added to Remaining TS Rules@typescript-eslint/no-empty-object-type
- added to Remaining TS Rules@typescript-eslint/no-empty-object-type
- added to Remaining TS Rules@typescript-eslint/consistent-return
- added to TS Extensions (Requiring Type Checks)@typescript-eslint/only-throw-error
- added to TS Extensions (Requiring Type Checks)@typescript-eslint/prefer-destructuring
- added to TS Extensions (Requiring Type Checks)@typescript-eslint/prefer-promise-reject-errors
- added to TS Extensions (Requiring Type Checks)@typescript-eslint/no-array-delete
- added to TS Recommended (Requiring Type Checks)@typescript-eslint/no-confusing-void-expression
- moved from Remaining TS Rules (Requiring Type Checks) to TS Recommended (Requiring Type Checks)@typescript-eslint/no-duplicate-type-constituents
- moved from Remaining TS Rules (Requiring Type Checks) to TS Recommended (Requiring Type Checks)@typescript-eslint/no-redundant-type-constituents
- moved from Remaining TS Rules (Requiring Type Checks) to TS Recommended (Requiring Type Checks)@typescript-eslint/no-unnecessary-template-expression
- added to TS Recommended Requiring Type Checks@typescript-eslint/use-unknown-in-catch-callback-variable
- added to TS Recommended Requiring Type Checks@typescript-eslint/no-unnecessary-type-parameters
- added to Remaining TS Rules (Requiring Type Checks)@typescript-eslint/no-unsafe-unary-minus
- added to Remaining TS Rules (Requiring Type Checks)@typescript-eslint/no-useless-template-literals
- added to Remaining TS Rules (Requiring Type Checks)@typescript-eslint/prefer-find
- added to Remaining TS Rules (Requiring Type Checks)@angular-eslint/no-host-metadata-property
- moved from Angular Recommended to Remaining Angular@angular-eslint/runtime-localize
- added to Remaining Angular