mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Rule Detail: [link](https://eslint.org/docs/latest/rules/no-useless-concat) --- I haven't implemented one condition with the multiline string test case and honestly I don't really understand why it is allowed? And also not sure how I would implement that in oxlint. Another issue is that maybe the output isn't great, the underlining matches the whole BinaryExpression, for example: ``` + ╭─[no_useless_concat.tsx:1:1] + 1 │ foo + `a` + `b` + · ─────────────── ``` So maybe instead the diagnostic should get two spans passed, for each Expression::StringLiteral or Expression::TemplateLiteral, that would also allow the help text to show that it can be written as `"ab"`. But an automatic fixxer would be more helpful I reckon :) --------- Co-authored-by: Boshen <boshenc@gmail.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| fixtures | ||
| src | ||
| tests | ||
| Cargo.toml | ||