Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fluffy-spoons-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/eslint-plugin': minor
---

Enable @typescript-eslint/consistent-type-imports to error
2 changes: 2 additions & 0 deletions packages/eslint-plugin/lib/config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'error',
// Enforce consistent brace style for blocks
'@typescript-eslint/brace-style': 'error',
// Enforce consistent type imports when importing a token as strictly a type vs as a runtime value
'@typescript-eslint/consistent-type-imports': 'error',
// Enforces consistent usage of type assertions.
'@typescript-eslint/consistent-type-assertions': [
'error',
Expand Down