Closed TotomInc closed 2 weeks ago
I've fixed the double line-return issue with the following:
- "internal-pattern": ["@/**", "~/**"],
+ "internal-pattern": ["@/**", "~/**", "!**.vue"],
However, I still have the invalid import sorting loop error.
Alright the issue was totally on my end. Sorry for creating this useless issue.
Since my config extends antfu's ESLint config, I totally forgot that there is also the "import/order"
rule enabled.
After setting "import/order": "off"
, it works as intended.
It should have tickled my mind that an ESLint error loop is the cause of conflicting rules.
Thanks for this awesome plugin!
Describe the bug
It doesn't sort and is broken in an infinite loop when there is a relative .vue file import and an
import type {} from "@/xxx"
.Code example
Using ESLint flat-config, here's the eslint-plugin-perfectionist related configuration:
Here's the non-working code-sample, from a .vue SFC:
ESLint version
v8.57.0
ESLint Plugin Perfectionist version
v2.10.0
Additional comments
When fixing the issue, it causes a double empty line:
Validations