Skip to content

Commit c56b08e

Browse files
committed
feat(typescript): Add @typescript-eslint/key-spacing rule
1 parent d9684ba commit c56b08e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configurations/typescript/rules/typescript.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ module.exports = {
198198
// https://typescript-eslint.io/rules/init-declarations
199199
...extendFromBase('init-declarations'),
200200

201+
// Enforce consistent spacing between property names
202+
// and type annotations in types and interfaces. (autofixable)
203+
// https://typescript-eslint.io/rules/key-spacing/
204+
...extendFromBase('+key-spacing'),
205+
201206
// Enforce consistent spacing before and after keywords (autofixable)
202207
// https://typescript-eslint.io/rules/keyword-spacing/
203208
...extendFromBase('+keyword-spacing'),

0 commit comments

Comments
 (0)