Skip to content

Default configuration files for LWC and AURA linters #3425

Answered by nvuillam
MouadRabihi07 asked this question in Q&A
Discussion options

You must be logged in to vote

@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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MouadRabihi07
Comment options

@nvuillam
Comment options

@MouadRabihi07
Comment options

@nvuillam
Comment options

Answer selected by nvuillam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants