-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to update to ESLint 9 as @lwc/eslint-plugin-lwc don't support it. #2986
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @PawelWozniak, the Salesforce CLI team does not own the |
Hello, I think this is also a CLI issue as it is the CLI that creates ESLint ^9.9.1 dependency for a new standard project. I've been having lots of issues issues with template setup lately, need to run npm install --legacy-peer-deps also due to ESLint 9 issue. SF CLI version: latest, 2.59.6 from 2024-09-25 sf project generate --name test1 --template standard --output-dir .\
npm install
npm install --legacy-peer-deps package.json {
"name": "salesforce-app",
"private": true,
"version": "1.0.0",
"description": "Salesforce App",
"scripts": {
"lint": "eslint **/{aura,lwc}/**/*.js",
"test": "npm run test:unit",
"test:unit": "sfdx-lwc-jest",
"test:unit:watch": "sfdx-lwc-jest --watch",
"test:unit:debug": "sfdx-lwc-jest --debug",
"test:unit:coverage": "sfdx-lwc-jest --coverage",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"postinstall": "husky install",
"precommit": "lint-staged"
},
"devDependencies": {
"@lwc/eslint-plugin-lwc": "^1.1.2",
"@prettier/plugin-xml": "^3.2.2",
"@salesforce/eslint-config-lwc": "^3.2.3",
"@salesforce/eslint-plugin-aura": "^2.0.0",
"@salesforce/eslint-plugin-lightning": "^1.0.0",
"@salesforce/sfdx-lwc-jest": "^5.1.0",
"eslint": "^9.9.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^28.8.1",
"husky": "^9.1.5",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prettier-plugin-apex": "^2.0.1"
},
"lint-staged": {
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
"prettier --write"
],
"**/{aura,lwc}/**/*.js": [
"eslint"
]
}
} |
Summary
I am keeping npm modules updated in my project but have stuck with ESLint 8.57.0 as @lwc/eslint-plugin-lwc don't support version 9.
Steps To Reproduce
In the project folder context type in CLI
npm outdated
then
npm upgrade
gives this result:It seems that lwc/eslint-plugin-lwc is not supporting version 9 of ESLint.
In the context of upcoming typescript support, I would like to have the latest version installed and supported. https://developer.salesforce.com/docs/platform/lwc/guide/ts.html
Expected result
It is possible to install the latest ESLint.
Actual result
Unable to update ESLint due to dependency issues.
System Information
Windows 11, powershell 7.4.4
Additional information
The text was updated successfully, but these errors were encountered: