Skip to content

Commit

Permalink
FIX(eslint): @W-17216768@: Add global variables support for aura glob…
Browse files Browse the repository at this point in the history
…al value providers to eslint engine (#122)
  • Loading branch information
stephen-carter-at-sf authored Nov 12, 2024
1 parent b5122c3 commit 7575762
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/code-analyzer-eslint-engine/src/base-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ export class LegacyBaseConfigFactory {

return {
globals: {
// Mark $A as known global for Aura: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm
"$A": "readonly",
// Mark variables as known globals for Aura
"$A": "readonly", // See: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_jsapi_dollarA.htm
"$Browser": "readonly", // See: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_source.htm
"$ContentAsset": "readonly", // ^
"$Label": "readonly", // ^
"$Locale": "readonly", // ^
"$Resource": "readonly" // ^
},
overrides: overrides
};
Expand Down

0 comments on commit 7575762

Please sign in to comment.