question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only allow one blank line between blocks and at EOF

See original GitHub issue

Currently, the style.js enforces at most two lines:

// disallow multiple empty lines
'no-multiple-empty-lines': [2, {'max': 2}],

Should this follow this suggestion to enforce the max blank line to only 1?

Besides, this will affect the allowed blank line at the end of the file, too.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
paulintrognoncommented, May 8, 2016

@dsernst You’re right! I had an outdated eslint version installed globally. I removed it and got rid of the error. Thank you very much!

1reaction
dsernstcommented, May 7, 2016

@paulintrognon: If I remember correctly, there was a problem with my editor using globally installed package versions that were very out-of-date. I believe nvm was also making the issue worse by obfuscating my global npm installs.

Once I removed all the old versions that were globally installed, both within nvm node-version-specific directories and outside, the issue went away.

Hope this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In ansible how to add a block of text at end of a file with a ...
This works 99%. The only issue is it adds the empty line at the end of file when the mark does not exists...
Read more >
padding-line-between-statements: Missing functionality ...
no-multiple-empty-lines already handles empty lines at the beginning of files, but it can't handle the case where there is a comment at the ......
Read more >
sed script to print lines between the last occurence of a pattern ...
Using the stream editor sed , we detect the pattern record and from there on skip the line and loop until the next...
Read more >
no-multiple-empty-lines - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Handy one-liners for SED
Output file # should contain no more than one blank line between lines of text. ... each line of file, but only print...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found