chore: enable no-explicit-any rule as error level #1366
Merged
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.
Removes our override such that
anyis no longer allowed, and replaces usages of it.@fb55 this uncovered a curiosity:
the
Updating node source code location (GH-314)test was basically asserting that you can have a custom source code location setter. i.e. you can have your own location shapehowever, we have a strong type for
Locationand all tree adapters are required to return anElementLocationfromgetSourceCodeLocation(which itself is aLocation).so while we do let you set whatever you want in
setSourceCodeLocation, it doesn't make much sense to set anything that isn't aLocation, as you need to get that back out ingetSourceCodeLocationanyway.tldr i think the test and the use case made sense way back, but has lost its meaning as we've strengthened types