Skip to content

Commit fce8882

Browse files
authored
feat(eslint-config-react): enforce consistent type imports/exports/definition (#1108)
* chore: prepare for consistent return eslint rule * fix: export and type definition * feat(eslint-config-react): enforce consistent type imports * feat: add export and definition
1 parent 606194b commit fce8882

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/eslint-config-react/typescript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ module.exports = {
1818
},
1919
},
2020
],
21-
'@typescript-eslint/no-unused-vars': ['error'],
21+
'@typescript-eslint/no-unused-vars': 'error',
22+
'@typescript-eslint/consistent-type-imports': 'error',
23+
'@typescript-eslint/consistent-type-exports': 'error',
24+
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
2225
// We favor object defaults instead of default props in TS
2326
// https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/default_props/#you-may-not-need-defaultprops
2427
// https://twitter.com/dan_abramov/status/1133878326358171650

0 commit comments

Comments
 (0)