Open evgeniyworkbel opened 4 months ago
There might be a problem with @typescript-eslint/parser. Could you tell me what version you have installed?
And which package manager are you using?
There might be a problem with @typescript-eslint/parser. Could you tell me what version you have installed?
And which package manager are you using?
Our app is based on create-react-app (v5.0.1, latest). The project does not have typescript-eslint/parser directly, but I assume CRA is used its version 5.57.1. Also yarn v 1.22.19 is installed
Can you create a repository and reproduce the problem?
ESLint Plugin Perfectionist uses TypeScript ESLint v6+.
Same issue! ESLint 8.15.0, typescript 5
@hogan0520 Can you create a small repository and reproduce the problem? That would help me a lot to fix the problem.
@hogan0520 Can you create a small repository and reproduce the problem? That would help me a lot to fix the problem.
I found the reason. Because @typescript-eslint
do not have sourceCode
property in lower version. Just have getSourceCode()
.
So, when I used "eslint-plugin-perfectionist": "2.4.0"
, resolved this issue.
Maybe you need to add some code or dependency limitation to handle it. @azat-io
Thank you for your response.
@hogan0520 Yes, perhaps we should more rigorously specify the version of @typescript-eslint
. Thank you
Describe the bug
After upgrading plugin from 2.4.0 to 2.5.0 our app build have failed. Why?
Code example
ESLint version
8.54.0
ESLint Plugin Perfectionist version
2.5.0
Additional comments
No response
Validations