Skip to content

Commit

Permalink
feat(jsii): enable strictPropertyInitialization checks (#838)
Browse files Browse the repository at this point in the history
This will prevent forgotten initialization errors such as the root cause
of #4286.
  • Loading branch information
rix0rrr committed Oct 1, 2019
1 parent 0d18b4d commit 11268c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jsii/lib/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const COMPILER_OPTIONS: ts.CompilerOptions = {
resolveJsonModule: true,
strict: true,
strictNullChecks: true,
strictPropertyInitialization: false,
strictPropertyInitialization: true,
stripInternal: true,
target: ts.ScriptTarget.ES2017
};
Expand Down

0 comments on commit 11268c4

Please sign in to comment.