Repository navigation
Commit a70a3ec
talentdev219
Reverse rule on string concatenation for long lines (#995)
Broken and concatenated long strings are painful to work with and
produce less readable and searchable code. I think we should reverse
this rule.
Unfortunately, the max-len rule currently does not allow for this, but
there is currently a proposal to add an option to ESLint's max-len rule
that would allow for strings to be ignored.
eslint/eslint#5805
There have also been discussions around performance of string
concatenation (airbnb/javascript#40), but I
don't think that is very relevant here so I removed the links to them.1 parent 7eed0f2 commit a70a3ec
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | | - | |
489 | | - | |
| 488 | + | |
490 | 489 | | |
491 | 490 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
498 | 494 | | |
499 | 495 | | |
500 | 496 | | |
501 | | - | |
| 497 | + | |
502 | 498 | | |
503 | 499 | | |
504 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
| |||
0 commit comments