We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@typescript-eslint/consistent-type-exports
@typescript-eslint/consistent-type-imports
See https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/ for details.
Both rules have autofix for the inline option.
Or:
verbatimModuleSyntax
tsconfig.json
@typescript-eslint/no-import-type-side-effects
"import/no-duplicates": ["error", {"prefer-inline": true}]
However: verbatimModuleSyntax doesn't seem to work well with export default {type} (microsoft/TypeScript#41409). Maybe due to this, consistent-type-imports is the better choice?
export default {type}
consistent-type-imports
The text was updated successfully, but these errors were encountered:
next-intl@4
No branches or pull requests
See https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/ for details.
Both rules have autofix for the inline option.
Or:
verbatimModuleSyntax
intsconfig.json
(makes@typescript-eslint/consistent-type-exports
and@typescript-eslint/consistent-type-imports
obsolete)@typescript-eslint/no-import-type-side-effects
"import/no-duplicates": ["error", {"prefer-inline": true}]
However:
verbatimModuleSyntax
doesn't seem to work well withexport default {type}
(microsoft/TypeScript#41409). Maybe due to this,consistent-type-imports
is the better choice?The text was updated successfully, but these errors were encountered: