Skip to content

Commit

Permalink
feat: introduce padding-line-between-statements rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jul 10, 2023
1 parent dadb6a4 commit 89445a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,14 @@ module.exports = defineConfig({
// extras
curly: ['error', 'all'],
'arrow-body-style': ['error', 'as-needed'],

'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: ['class', 'function', 'export'],
},
],
},
});
10 changes: 10 additions & 0 deletions packages/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,15 @@ module.exports = defineConfig({
ignoreTypeImports: false,
},
],

'padding-line-between-statements': 'off',
'@typescript-eslint/padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: ['interface', 'type', 'class', 'function', 'export'],
},
],
},
});

0 comments on commit 89445a5

Please sign in to comment.