Skip to content

Commit 648f761

Browse files
committed
Re-enable codelyzer lint, turn off ivy
1 parent 2ac44e1 commit 648f761

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

.bazelrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ test --test_output=errors
3838
build:release --workspace_status_command="node ./tools/bazel-stamp-vars.js"
3939

4040
################################
41-
# Settings for Ivy #
41+
# View Engine / Ivy toggle #
4242
################################
4343

44-
# We want to compile with Ivy and with "ngtsc".
45-
# To build for ViewEngine, use --define=compile=legacy.
44+
# Use "legacy" for ViewEngine and "aot" for Ivy
4645
build --define=compile=aot
4746

4847
#######################

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"format:bazel": "yarn -s bazel:buildifier --lint=fix --mode=fix",
3636
"format": "yarn -s format:ts && yarn -s format:bazel",
3737
"cherry-pick-patch": "ts-node --project tools/cherry-pick-patch/ tools/cherry-pick-patch/cherry-pick-patch.ts",
38-
"check-rollup-globals": "ts-node --project scripts/ scripts/check-rollup-globals.ts",
39-
"debug": "ngc -p ./src/cdk/coercion/tsconfig-build.json"
38+
"check-rollup-globals": "ts-node --project scripts/ scripts/check-rollup-globals.ts"
4039
},
4140
"version": "9.0.0-next.0",
4241
"requiredAngularVersion": "^9.0.0-0 || ^10.0.0-0",
@@ -99,7 +98,7 @@
9998
"browser-sync": "^2.26.7",
10099
"chalk": "^2.4.2",
101100
"clang-format": "^1.2.4",
102-
"codelyzer": "^5.1.2",
101+
"codelyzer": "^5.2.0",
103102
"conventional-changelog": "^3.0.5",
104103
"dgeni": "^0.4.11",
105104
"dgeni-packages": "^0.27.1",

src/cdk/overlay/overlay-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class OverlayConfig {
7474
// is not smart enough to see that the right-hand-side is actually an access of the same
7575
// exact type with the same exact key, meaning that the value type must be identical.
7676
// So we use `any` to work around this.
77-
this[key] = (config)[key] as any;
77+
this[key] = config[key] as any;
7878
}
7979
}
8080
}

tools/defaults.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ def ng_module(
9797
deps = local_deps,
9898
tsconfig = tsconfig,
9999
testonly = testonly,
100+
# TODO(jelbourn): re-enable type checking after granular flags land in Angular.
101+
type_check = False,
100102
**kwargs
101103
)
102104

tslint.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@
9292
// Codelyzer
9393
"template-banana-in-box": true,
9494
"contextual-lifecycle": true,
95-
// TODO(jelbourn): re-enable this when it works with TS 3.6
96-
// "contextual-decorator": true,
95+
"contextual-decorator": true,
9796
"no-output-on-prefix": true,
9897
"template-no-negated-async": true,
9998
"use-lifecycle-interface": true,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2950,10 +2950,10 @@ code-point-at@^1.0.0:
29502950
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
29512951
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
29522952

2953-
codelyzer@^5.1.2:
2954-
version "5.1.2"
2955-
resolved "https://registry.yarnpkg.com/codelyzer/-/codelyzer-5.1.2.tgz#e6c08269f8796483e57e6d9b7c29723572472b1d"
2956-
integrity sha512-1z7mtpwxcz5uUqq0HLO0ifj/tz2dWEmeaK+8c5TEZXAwwVxrjjg0118ODCOCCOcpfYaaEHxStNCaWVYo9FUPXw==
2953+
codelyzer@^5.2.0:
2954+
version "5.2.0"
2955+
resolved "https://registry.yarnpkg.com/codelyzer/-/codelyzer-5.2.0.tgz#b0ee573a12779c996090e596c5c1755479d83758"
2956+
integrity sha512-izfUfhEOOgAizszPlEDxo71DK/C4wprZw0vkY6UWcOSTQvN1JyfXf9DXwaV7WX+/JC+hH0ShXfdtGLA9Rca7LA==
29572957
dependencies:
29582958
app-root-path "^2.2.1"
29592959
aria-query "^3.0.0"

0 commit comments

Comments
 (0)