[max-lines] - add an option to ignore imports
See original GitHub issueWhat 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:
- Created 4 years ago
- Reactions:4
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll champion this.
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!