diff --git a/.changeset/fluffy-spoons-admire.md b/.changeset/fluffy-spoons-admire.md new file mode 100644 index 00000000..ef802c68 --- /dev/null +++ b/.changeset/fluffy-spoons-admire.md @@ -0,0 +1,5 @@ +--- +'@shopify/eslint-plugin': minor +--- + +Enable @typescript-eslint/consistent-type-imports to error diff --git a/packages/eslint-plugin/lib/config/typescript.js b/packages/eslint-plugin/lib/config/typescript.js index 69caf947..4c5f4aaa 100644 --- a/packages/eslint-plugin/lib/config/typescript.js +++ b/packages/eslint-plugin/lib/config/typescript.js @@ -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',