fix small linting problems
fixed some small linting errors like 'using optional chaining', 'remove useless else blocks' and 'type-only imports for types'.
⚠️ No Changeset found
Latest commit: 7335fb65ac0f6033583c1fb160bf4074cb35767e
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Hmm.. right now Solid core deliberately does not support optional chaining to be compatible with older targets. So I can't merge this in the current state. Solid 2.0 will expect older platforms to transpile but we are drawing the line here on 1.0.