Skip to content

Commit

Permalink
Merge pull request #12022 from hasezoey/eslint-no-multiple-empty-lines
Browse files Browse the repository at this point in the history
Add ESLint rule `no-multiple-empty-lines` and apply it
  • Loading branch information
vkarpov15 committed Jul 2, 2022
2 parents 43126c5 + 8bcef66 commit c6a92ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Expand Up @@ -187,6 +187,7 @@
"error"
],
"no-empty": "off",
"eol-last": "warn"
"eol-last": "warn",
"no-multiple-empty-lines": ["warn", { "max": 2 }]
}
}
1 change: 0 additions & 1 deletion test/model.querying.test.js
Expand Up @@ -1838,7 +1838,6 @@ describe('model: querying:', function() {
const [a, b, c, d] = await Test.create([docA, docB, docC, docD]);



assert.equal(a.block.toString('utf8'), 'über');
assert.equal(b.block.toString('utf8'), 'buffer shtuffs are neat');
assert.equal(c.block.toString('utf8'), 'hello world');
Expand Down
1 change: 0 additions & 1 deletion test/model.test.js
Expand Up @@ -8514,7 +8514,6 @@ describe('Check if static function that is supplied in schema option is availabl
});



async function delay(ms) {
await new Promise((resolve) => setTimeout(resolve, ms));
}
Expand Down

0 comments on commit c6a92ce

Please sign in to comment.