mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +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> |
||
|---|---|---|
| .. | ||
| oxc | ||
| oxc_allocator | ||
| oxc_ast | ||
| oxc_ast_macros | ||
| oxc_cli | ||
| oxc_codegen | ||
| oxc_diagnostics | ||
| oxc_index | ||
| oxc_js_regex | ||
| oxc_language_server | ||
| oxc_linter | ||
| oxc_macros | ||
| oxc_minifier | ||
| oxc_module_lexer | ||
| oxc_parser | ||
| oxc_prettier | ||
| oxc_semantic | ||
| oxc_sourcemap | ||
| oxc_span | ||
| oxc_syntax | ||
| oxc_transformer | ||
| oxc_traverse | ||
| oxc_wasm | ||