kintone/js-sdk

Enfoce type imports as Lint rule

tasshi-me opened this issue · 0 comments

I want to enforce to maintainers to use of import type.

There is an ESLint rule to enforce consistent usage of type imports.

https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md

TypeScript allows specifying a type keyword on imports to indicate that the export exists only in the type system, not at runtime. This allows transpilers to drop imports without knowing the types of the dependencies.