-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stricter typescript configuration (#358)
This commit makes the TypeScript configuration stricter by enabling the `strict` setting. This implies that the `alwaysStrict` setting is implicitely enabled and no longer needs to be mentioned explicitly. This required three fixes: * in `icons.ts`, `SPECIFIC_RULE_CLASS_ICONS` needed an explicit type * in `bazel_query.ts`, `execOptions` needed an explicit type * All usages of `blaze_query.Target` had to be replaced by `ITarget`. This was necessary, because `queryResult.target` is of type `ITarget[]` not `Target` and `bazel_{package,target}_tree_item.ts` would not have compiled otherwise. The `strictNullChecks` setting is explicitly opted-out. There are 117 violations against those stricter null checks, and to make the reviews easier, I plan to only enable fix those in a separate commit. I also removed the `allowJs` setting. Not sure why this was ever set. It doesn't seem to be required anymore.
- Loading branch information
1 parent
a7bb6ff
commit 8028ab4
Showing
7 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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