Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@salesforce/eslint-plugin-aura
Advanced tools
Salesforce Lightning (Aura) specific linting rules for ESLint.
npm install --save-dev @salesforce/eslint-plugin-aura
Add this plugin to your ESLint configuration and extend your desired configuration. See ESLint documentation for details.
Example:
{
"plugins": ["@salesforce/eslint-plugin-aura"],
"extends": [
"plugin:@salesforce/eslint-plugin-aura/recommended",
"plugin:@salesforce/eslint-plugin-aura/locker"
]
}
Rule ID | Description |
---|---|
aura/aura-api | validate Aura APIs |
aura/getevt-markup-prefix | verify the presence of the markup:// prefix for events accessed via $A.getEvt() |
aura/no-deprecated-aura-error | prevent usage of $A.error |
aura/no-deprecated-component-creation | prevent usage of deprecated component creation methods |
aura/no-deprecated-event-creation | prevent usage of deprecated event creation methods |
Rule ID | Description |
---|---|
aura/ecma-intrinsics | validate JavaScript intrinsic APIs |
aura/secure-document | validate secure document public APIs |
aura/secure-window | validate secure window public APIs |
This package exposes 2 configurations for your usage.
@salesforce/eslint-plugin-aura/recommended
configurationGoal: Prevent common pitfalls with Lightning component development, and enforce other Salesforce platform restrictions.
Rules:
$A
global, via the aura-api
rule.@salesforce/eslint-plugin-aura/locker
configurationGoal: Prevent Lightning Locker violations.
Rules:
@salesforce/eslint-plugin-aura/recommended
rules.document
and window
via the secure-document
and secure-window
rules, respectively.ecma-intrinsics
rule.FAQs
ESLint plugin for Aura
The npm package @salesforce/eslint-plugin-aura receives a total of 47,125 weekly downloads. As such, @salesforce/eslint-plugin-aura popularity was classified as popular.
We found that @salesforce/eslint-plugin-aura demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 80 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.