6 Commits

Author SHA1 Message Date
Paul Gschwendtner
b5ab7aff43 refactor: add override keyword to members implementing abstract declarations ()
In combination with the TS `noImplicitOverride` compatibility changes,
we also want to follow the best-practice of adding `override` to
members which are implemented as part of abstract classes. This
commit fixes all instances which will be flagged as part of the
custom `no-implicit-override-abstract` TSLint rule.

PR Close 
2021-07-12 13:11:17 -07:00
Kristiyan Kostadinov
5ce71e0fbc feat(core): add automated migration to replace async with waitForAsync ()
Adds a migration that finds all imports and calls to the deprecated `async` function from
`@angular/core/testing` and replaces them with `waitForAsync`.

These changes also move a bit of code out of the `Renderer2` migration so that it can be reused.

PR Close 
2020-10-13 09:55:34 -07:00
Kristiyan Kostadinov
7849fdde09 feat(router): add migration to update calls to navigateByUrl and createUrlTree with invalid parameters ()
In  the signatures of `navigateByUrl` and `createUrlTree` were updated to exclude unsupported
properties from their `extras` parameter. This migration looks for the relevant method calls that
pass in an `extras` parameter and drops the unsupported properties.

**Before:**
```
this._router.navigateByUrl('/', {skipLocationChange: false, fragment: 'foo'});
```

**After:**
```
this._router.navigateByUrl('/', {
  /* Removed unsupported properties by Angular migration: fragment. */
  skipLocationChange: false
});
```

These changes also move the method call detection logic out of the `Renderer2` migration and into
a common place so that it can be reused in other migrations.

PR Close 
2020-09-16 15:16:18 -07:00
Joey Perrott
d1ea1f4c7f build: update license headers to reference Google LLC ()
Update the license headers throughout the repository to reference Google LLC
rather than Google Inc, for the required license headers.

PR Close 
2020-05-26 14:26:58 -04:00
Joey Perrott
698b0288be build: reformat repo to new clang@1.4.0 ()
PR Close 
2020-04-14 12:08:36 -07:00
Paul Gschwendtner
9896d438c0 refactor(core): move renderer2 migration lint rule into google3 folder ()
Moves the `renderer_to_renderer2` migration google3 tslint rule
into the new `google3` directory. This is done for consistency
as we recently moved all google3 migration rules into a new
`google3` folder (see: f69e4e6f770907f6811de88e52692df1a3d2f43e).

PR Close 
2019-08-09 10:46:45 -07:00