Skip to content

Commit 58c5510

Browse files
TrottFishrock123
authored andcommitted
tools: disallow extra blank lines at EOF/BOF
Enabling linting to disallow extra blank lines at the start or end of JavaScript files in our code base. Fixes: #8918 PR-URL: #8920 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 636026a commit 58c5510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ rules:
8080
max-len: [2, 80, 2]
8181
new-parens: 2
8282
no-mixed-spaces-and-tabs: 2
83-
no-multiple-empty-lines: [2, {max: 2}]
83+
no-multiple-empty-lines: [2, {max: 2, maxEOF: 0, maxBOF: 0}]
8484
no-tabs: 2
8585
no-trailing-spaces: 2
8686
quotes: [2, single, avoid-escape]

0 commit comments

Comments
 (0)