Skip to content

Commit 9550acb

Browse files
authored
chore: add eslint padding-line-between-statements rule (#247)
* force blank line after block-like statements * fix lint errors, add comment * address pr comments
1 parent 7e4bc7c commit 9550acb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.eslintrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,12 @@ module.exports = {
6969

7070
// These on-by-default rules don't work well for this repo and we like them off.
7171
"no-inner-declarations": "off",
72+
73+
// Stylistic concerns that don't interfere with Prettier
74+
"padding-line-between-statements": "off",
75+
"@typescript-eslint/padding-line-between-statements": [
76+
"error",
77+
{ blankLine: "always", next: "*", prev: "block-like" },
78+
],
7279
},
7380
};

script/setup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ try {
192192
: "create";
193193
await $`gh label ${action} ${outcome.name} --color ${outcome.color} --description ${outcome.description}`;
194194
}
195+
195196
console.log(chalk.gray`✔️ Done.`);
196197

197198
console.log();
@@ -287,4 +288,5 @@ if (caughtError) {
287288
console.log(chalk.gray`\tgit push`);
288289
console.log(chalk.greenBright`See ya! 👋`);
289290
}
291+
290292
console.log();

0 commit comments

Comments
 (0)