biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.
https://biomejs.dev
Apache License 2.0
15.28k stars 475 forks source link

💅 useJsxKeyInIterable incorrect behaviour #2481

Closed octoshikari closed 6 months ago

octoshikari commented 6 months ago

Please check error in screenshot

Снимок экрана 2024-04-16 в 12 55 12

Environment information

❯ biome rage --linter
CLI:
  Version:                      1.7.0
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Linter:
  Recommended:                  true
  All:                          false
  Rules:                        correctness/noUnusedImports = "error"
                                nursery/noDuplicateJsonKeys = "error"
                                style/noDefaultExport = "error"
                                style/useImportType = "error"
                                suspicious/noConsoleLog = "error"
                                suspicious/noExplicitAny = "warn"
                                suspicious/noImplicitAnyLet = "warn"

Workspace:
  Open Documents:               0

Rule name

useJsxKeyInIterable

Playground link

https://biomejs.dev/playground/?lintRules=all&code=YwBvAG4AcwB0ACAAaQB0AGUAbQBzACAAPQAgAFsAewB0AHkAcABlADoAIAAnAGIAdQB0AHQAbwBuACcALAAgAHQAaQB0AGwAZQA6ACAAJwAxACcAfQAsACAAewB0AHkAcABlADoAIAAnAGwAaQBuAGsAJwAsACAAdABpAHQAbABlADoAIAAnADIAJwB9AF0ACgAKAAoACgBlAHgAcABvAHIAdAAgAGMAbwBuAHMAdAAgAEwAaQBzAHQAIAA9ACAAKAApACAAPQA%2BACAAewAKACAAIAByAGUAdAB1AHIAbgAgADwAZABpAHYAPgB7AGkAdABlAG0AcwAuAG0AYQBwACgAaQB0AGUAbQAgAD0APgAgAGkAdABlAG0ALgB0AHkAcABlACAAPQA9AD0AIAAnAGwAaQBuAGsAJwAgAAoAIAAgACAAIAA%2FACAAKAA8AGEAIABrAGUAeQA9AHsAaQB0AGUAbQAuAHQAaQB0AGwAZQB9ACAAaAByAGUAZgA9ACIAIwAvACIAPgB7AGkAdABlAG0ALgB0AGkAdABsAGUAfQA8AC8AYQA%2BACkACgAgACAAIAAgADoAIAAoADwAYgB1AHQAdABvAG4AIAB0AHkAcABlAD0AJwBiAHUAdAB0AG8AbgAnACAAawBlAHkAPQB7AGkAdABlAG0ALgB0AGkAdABsAGUAfQA%2BAHsAaQB0AGUAbQAuAHQAaQB0AGwAZQB9ADwALwBiAHUAdAB0AG8AbgA%2BACkAKQB9AAoAIAAgADwALwBkAGkAdgA%2BAAoAfQA%3D

Expected result

It should work correct

Code of Conduct

Sec-ant commented 6 months ago

Seems a duplicate of #2468? Although the error cannot be reproduced in your provided playground link.

octoshikari commented 6 months ago

Seems a duplicate of #2468? Although the error cannot be reproduced in your provided playground link.

Yeap look like duplicate. We can close this issue

octoshikari commented 6 months ago

@Sec-ant Updated playground link if it can be helpful

https://biomejs.dev/playground/?lintRules=all&code=YwBvAG4AcwB0ACAAaQB0AGUAbQBzACAAPQAgAFsAewB0AHkAcABlADoAIAAnAGIAdQB0AHQAbwBuACcALAAgAHQAaQB0AGwAZQA6ACAAJwAxACcAfQAsACAAewB0AHkAcABlADoAIAAnAGwAaQBuAGsAJwAsACAAdABpAHQAbABlADoAIAAnADIAJwB9AF0ACgAKAAoACgBlAHgAcABvAHIAdAAgAGMAbwBuAHMAdAAgAEwAaQBzAHQAIAA9ACAAKAApACAAPQA%2BACAAewAKACAAIAByAGUAdAB1AHIAbgAgADwAZABpAHYAPgB7AGkAdABlAG0AcwAuAG0AYQBwACgAaQB0AGUAbQAgAD0APgAgAGkAdABlAG0ALgB0AHkAcABlACAAPQA9AD0AIAAnAGwAaQBuAGsAJwAgAAoAIAAgACAAIAA%2FACAAKAA8AGEAIABrAGUAeQA9AHsAaQB0AGUAbQAuAHQAaQB0AGwAZQB9ACAAaAByAGUAZgA9ACIAIwAvACIAPgB7AGkAdABlAG0ALgB0AGkAdABsAGUAfQA8AC8AYQA%2BACkACgAgACAAIAAgADoAIAAoADwAYgB1AHQAdABvAG4AIAB0AHkAcABlAD0AJwBiAHUAdAB0AG8AbgAnACAAawBlAHkAPQB7AGkAdABlAG0ALgB0AGkAdABsAGUAfQA%2BAHsAaQB0AGUAbQAuAHQAaQB0AGwAZQB9ADwALwBiAHUAdAB0AG8AbgA%2BACkAKQB9AAoAIAAgADwALwBkAGkAdgA%2BAAoAfQA%3D