no-disallowed-lwc-imports restricts the APIs that can be imported from lwc. It was not written with TypeScript in mind. We should update the rule to make working with TypeScript easier.
Options:
- Keep the current implementation, but add commonly used
type and interface declarations.
- Allow any
type or interface to be imported.
- Skip checking
import type declarations (This would technically allow people to import the types for disallowed APIs. That's weird, though, and it still wouldn't allow them to use the disallowed APIs at runtime, so it shouldn't matter much.)