Skip to content

Commit

Permalink
Add rule to enforce whitespaces in multiline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
xpaczka committed Jun 26, 2024
1 parent 7b9bc8c commit 1fe0ac9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ module.exports = {
// .only tests being committed are typically a mistake
"no-only-tests/no-only-tests": "error",
"prettier/prettier": ["error", thesisPrettierConfig],
// Enforces whitespaces before and after multiline variables
"padding-line-between-statements": [
"error",
{
blankLine: "always",
prev: "*",
next: ["multiline-const", "multiline-let", "multiline-var"],
},
{
blankLine: "always",
prev: ["multiline-const", "multiline-let", "multiline-var"],
next: "*",
},
],
},
overrides: [
{
Expand Down

0 comments on commit 1fe0ac9

Please sign in to comment.