jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
8.97k stars 2.77k forks source link

[Bug]: The endless linting cycle #3745

Closed root9464 closed 5 months ago

root9464 commented 5 months ago

Is there an existing issue for this?

Description Overview

I use eslint v8.56.0 and when I press ctrl+s, the spaces in { } are removed by the formatter, and then returned back. Below I have attached a video with the problem and what exactly happened to me. But if you describe it in words, that is, the string import type {Metadata } from "next"; and after I press ctrl+s, the string is converted to import type {Metadata} from "next"; and then back to import type { Metadata} from "next";and Linter complains again. I tried to disable spaces in the config file but it doesn't help

Expected Behavior

Video problem: https://disk.yandex.ru/i/V5W2pv8wQbq4Ng help me please

eslint-plugin-react version

eslint-plugin-react@7.34.1

eslint version

8.56.0

node version

v20.11.1

ljharb commented 5 months ago

This is a duplicate of #3744, why did you file it?

The react plugin does not touch import statements in this manner, so this is the wrong repo to be filing an issue on. Please do not file any additional issues here about this matter.