Skip to content

Commit 99064b2

Browse files
committed
feat(typescript): Add @typescript-eslint/lines-around-comment rule
1 parent e1d903b commit 99064b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configurations/typescript/rules/typescript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ module.exports = {
213213
// https://typescript-eslint.io/rules/keyword-spacing/
214214
...extendFromBase('+keyword-spacing'),
215215

216+
// Require empty lines around comments (autofixable)
217+
// https://typescript-eslint.io/rules/lines-around-comment/
218+
...extendFromBase('+lines-around-comment'),
219+
216220
// Require or disallow an empty line between class members (autofixable)
217221
// https://typescript-eslint.io/rules/lines-between-class-members
218222
// Note: has additional options, but the defaults are good

0 commit comments

Comments
 (0)