In TS 5.0, there is a option called verbatimModuleSyntax, which will cause the following issues.
import { type A, type B } from 'mod'; // is transpiled to import {} from 'mod'; // which is the same as import 'mod';Suggested solution
In module eslint-config-ts
, we can add the following rules to correct this potential side effect import.
"rules": {
"@typescript-eslint/no-import-type-side-effects": "error"
}
Alternative
In the documentation of typescript-eslint, this issue has been mentioned
Additional contextNo response
ValidationsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4