Default configuration files for LWC and AURA linters #3425
-
Greetings, i'm using mega-linter with Salesforce flavor, and i'm struggling to find the configuration files that are used by default by the sfdx-scanner-lwc and sfdx-scanner-aura. I want to use them as templates to customize further. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@MouadRabihi07 I removed them because they were messing with the local configuration defined in the sfdx project As sfdx-scanner is more and more recommended by SF, I wanted to make it also possible to run the same rules locally (and that wouldn't work if these rules are taken from MegaLinter default ones) In your aura and lwc folders, there should be a .eslintrc.json, that will be used by sfdx-scanner If you don't have them, you should be able to get them by calling |
Beta Was this translation helpful? Give feedback.
@MouadRabihi07 I removed them because they were messing with the local configuration defined in the sfdx project
As sfdx-scanner is more and more recommended by SF, I wanted to make it also possible to run the same rules locally (and that wouldn't work if these rules are taken from MegaLinter default ones)
In your aura and lwc folders, there should be a .eslintrc.json, that will be used by sfdx-scanner
If you don't have them, you should be able to get them by calling
sfdx force:project:create --projectname
in any folder then get the .eslintrc.json files from the generated files