Skip to content

Commit 50bd0e7

Browse files
committed
feat: type-only exports
1 parent 3998894 commit 50bd0e7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.changeset/healthy-pumas-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tpluscode/eslint-config": minor
3+
---
4+
5+
Enabled rule `@typescript-eslint/consistent-type-exports`

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ In a TypeScript project:
4646
}
4747
}
4848
```
49+
50+
`parserOptions.project` is required for TypeScript projects unless the rule `@typescript-eslint/consistent-type-exports` is disabled.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
'no-redeclare': 'off',
2727
'@typescript-eslint/no-redeclare': 'warn',
2828
'@typescript-eslint/no-unused-vars': 'off',
29+
'@typescript-eslint/consistent-type-exports': 'error',
2930
'@typescript-eslint/consistent-type-imports': 'error'
3031
},
3132
settings: {

0 commit comments

Comments
 (0)