forcedotcom / sfdx-scanner

MIT License
215 stars 49 forks source link

[Feature Request] Run scanner for ESLint Aura and LWC, each with its respective config file #1148

Open jonathanwiesel opened 1 year ago

jonathanwiesel commented 1 year ago

Is your feature request related to a problem? Please describe. When a Salesforce project is scaffolded you get 2 different eslintrc.json files, one inside the aura directory and another in lwc, each with its specific configuration.

I see no documented way to execute Code Analyzer just once that scans both directories each respecting their own configuration therefore needing to execute it one per directory indicating its specific configuration file.

Describe the solution you'd like A way to either map configuration file with it's corresponding path when calling Code Analyzer so it supports calling multiple of them, or if is actually possible to have a single .eslintrc.json file that handles the mapping of config by path, that solution to be documented as well with the Salesforce specific structure in mind (and probably make it the default for project scaffolding too, although I understand that's a whole different team)

Describe alternatives you've considered Executing Code Analyzer multiple times, ultimately I would like to even call it just once for all engines.

git2gus[bot] commented 1 year ago

This issue has been linked to a new work item: W-13930417