elysiajs / elysia-jwt

Plugin for Elysia for using JWT Authentication
MIT License
38 stars 16 forks source link

refactor: Meaningful type import #10

Closed pan93412 closed 1 year ago

pan93412 commented 1 year ago

"import type" without enabling "verbatimModuleSyntax" is meaningless according to TypeScript's documentation^1. TypeScript can detect and remove the unused imports automatically based on its set of rules.

However, being verbose and accurate is not a bad thing. This commit enables "verbatimModuleSyntax" and "consistent-type-imports" rules, so we can declare our imports more exactly.