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.

[max-lines] - add an option to ignore imports

See original GitHub issue

What rule do you want to change? max-lines Does this change cause the rule to produce more or fewer warnings? less How will the change be implemented? (New option, new default behavior, etc.)? new option Please provide some example code that this change will affect:

import doStuff from 'stuff'

doStuff()

What does the rule currently do for this code? counts import statement as a line What will the rule do after it’s changed? does not count import statement as a line Are you willing to submit a pull request to implement this change? no

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mdjermanoviccommented, Mar 7, 2020

I’ll champion this.

0reactions
mdjermanoviccommented, Jun 12, 2020

Since this enhancement hasn’t reached consensus, and it’s about a stylistic rule, I’m closing this issue in line with the recent changes to our rules policies.

@avalanche1 thanks for the proposal!

Read more comments on GitHub >

github_iconTop Results From Across the Web

EditText maxLines not working - user can still input more lines ...
The attribute maxLines corresponds to the maximum height of the EditText , it controls the outer boundaries and not inner text lines.
Read more >
max-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 >
Options - Prettier
When the two options are used simultaneously, --require-pragma has priority, so --insert-pragma is ignored. The idea is that during an incremental adoption of ......
Read more >
The Black code style - Black 22.12.0 documentation
Style configuration options are deliberately limited and rarely added. ... It doesn't reformat lines that end with # fmt: skip or blocks that...
Read more >
auto_size_text | Flutter Package - Pub.dev
The maxLines parameter works like you are used to with the Text widget. ... Pass this instance to all AutoSizeText you want to...
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