Closed PawelWozniak closed 2 months ago
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 @lwc/eslint-plugin-lwc
package. It looks like that team is aware of the issue and has it on their roadmap. Feel free to comment on this existing issue: https://github.com/salesforce/eslint-config-lwc/issues/128
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