diff --git a/src/lib/eslint/JavascriptEslintStrategy.ts b/src/lib/eslint/JavascriptEslintStrategy.ts index 61e00731b..81fd362e5 100644 --- a/src/lib/eslint/JavascriptEslintStrategy.ts +++ b/src/lib/eslint/JavascriptEslintStrategy.ts @@ -10,7 +10,12 @@ const ES_CONFIG: ESLint.Options = { "baseConfig": {}, "overrideConfig": { "globals": { - "$A": "readonly", // For Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm + "$A": "readonly", // For Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm + "$Browser": "readonly", // For Lightning Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_source.htm + "$ContentAsset": "readonly", // For Lightning Aura: ^ + "$Label": "readonly", // For Lightning Aura: ^ + "$Locale": "readonly", // For Lightning Aura: ^ + "$Resource": "readonly" // For Lightning Aura: ^ }, "parser": "@babel/eslint-parser", "parserOptions": { diff --git a/src/lib/eslint/LWCEslintStrategy.ts b/src/lib/eslint/LWCEslintStrategy.ts index 7cad4dd6b..b340b6c37 100644 --- a/src/lib/eslint/LWCEslintStrategy.ts +++ b/src/lib/eslint/LWCEslintStrategy.ts @@ -13,7 +13,12 @@ const ES_CONFIG: ESLint.Options = { "baseConfig": {}, "overrideConfig": { "globals": { - "$A": "readonly", // For Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm + "$A": "readonly", // For Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm + "$Browser": "readonly", // For Lightning Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_source.htm + "$ContentAsset": "readonly", // For Lightning Aura: ^ + "$Label": "readonly", // For Lightning Aura: ^ + "$Locale": "readonly", // For Lightning Aura: ^ + "$Resource": "readonly" // For Lightning Aura: ^ }, "parser": "@babel/eslint-parser", "parserOptions": {