Hi scott,
While setting up a TypeScript-based LWC project in Illuminated Cloud, I encountered a warning during dependency installation.
After I created the project and started using TypeScript, I saw a notification (probably from WebStorm or the IDE itself) asking something like "Install TypeScript modules?" — I accepted it, and then ran this command suggested in some guides:
npm install --save-dev --legacy-peer-deps globals @types/node @types/jest @sa11y/jest typescript eslint eslint-plugin-import eslint-import-resolver-typescript @eslint/eslintrc @eslint/js @types/eslint__js typescript-eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser @salesforce/sfdx-lwc-jest@latest
Then I got this warning:
npm WARN deprecated @types/eslin...@9.14.0: This is a stub types definition.
@eslint/js provides its own type definitions, so you do not need this installed.
After looking into it, I found that @eslint/js already includes its own type definitions, and @types/eslint__js is now deprecated and unnecessary.
✅ Solution:
Just remove @types/eslint__js from the installation command:
npm install --save-dev --legacy-peer-deps \
globals \
@types/node \
@types/jest \
@sa11y/jest \
typescript \
eslint \
eslint-plugin-import \
eslint-import-resolver-typescript \
@eslint/js \
typescript-eslint \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
@salesforce/sfdx-lwc-jest@latest
This resolved the warning for me, and everything is working fine so far.
Hope this helps others who run into the same issue!