Open jae-spyrosoft opened 6 months ago
How to exclude staticresources folder (or any other folder) from scanning.
I tried to exclude the whole staticresources folder by creating custom eslint configuration file like so:
{ "extends": "@salesforce/eslint-config-lwc/recommended", "ignorePatterns": ["**/staticresources"] }
However the above configuration results in many Scanner Internal violations with the file-must-compile rule error.
{ "engine": "eslint-custom", "fileName": "force-app/main/default/tabs/Files_Import.tab-meta.xml", "violations": [ { "line": 1, "column": 0, "severity": 2, "message": "Parsing error: Unexpected token (1:0)", "ruleName": "files-must-compile", "category": "Scanner Internal", "url": "" } ] },
Without excluding staticresources folder I am getting tons of errors due to the fact that one of my resources is a minified javascript library which for some reason is also being scanned.
Problem
How to exclude staticresources folder (or any other folder) from scanning.
Already tried
I tried to exclude the whole staticresources folder by creating custom eslint configuration file like so:
However the above configuration results in many Scanner Internal violations with the file-must-compile rule error.
Example: