Skip to content

Commit

Permalink
fix(eslint-config): fix padding line between statements rule (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao authored Jan 27, 2022
1 parent a382a1e commit 0631119
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,14 @@ module.exports = {
* https://github.com/xojs/eslint-config-xo-typescript/blob/main/index.js#L446
*/
'@typescript-eslint/no-non-null-assertion': 'error',
"padding-line-between-statements": [
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "*", "next": "return" },
{
blankLine: "always",
prev: "*",
next: ["interface", "type", "block-like", "return"]
},
],
},
parserOptions: {
Expand Down

0 comments on commit 0631119

Please sign in to comment.