Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message when using typescript 5 and @itwin/eslint-plugin 3.7.8 #47

Open
mdastous-bentley opened this issue Aug 28, 2023 · 1 comment

Comments

@mdastous-bentley
Copy link

Following error message appears when trying to use @itwin/eslint-plugin 3.7.8 and typescript 5 in the same project:
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree. You may find that it works just fine, or you may not. SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0 YOUR TYPESCRIPT VERSION: 5.0.4 Please only submit bug reports when using the officially supported version.

Upgrading to version '^4.0.0-dev.44' gives a new error message:
ESLint couldn't find the config "plugin:@itwin/ui" to extend from. Please check that the name of the config is correct.

To solve the problem I had to remove this section from my package.json:
eslintConfig": { "plugins": [ "@itwin" ], "extends": "plugin:@itwin/ui" },
and also needed to upgrade to eslint '^8.44.0' and create a eslint.config.js file (this last bit is mentioned in the README.MD, not quite clear which version of @itwin/eslint-plugin requires it though)

The upgrade path is a bit rough. and its still unclear if it's fine to go with a dev version (i.e 4.0.0-dev.44') into production.

@MichaelBelousov
Copy link
Contributor

the dev prerelease version of this package is not compatible with eslint@7, so you can't extend plugin:@itwin/*. Ideally #46 would resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants