You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
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:
type
andinterface
declarations.type
orinterface
to be imported.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.)The text was updated successfully, but these errors were encountered: