Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@salesforce/eslint-plugin-lightning

Package Overview
Dependencies
Maintainers
75
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/eslint-plugin-lightning

Collection of ESLint rules for Salesforce Lightning platform

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87K
increased by5.94%
Maintainers
75
Weekly downloads
 
Created
Source

@salesforce/eslint-plugin-lightning

Collection of ESLint rules for Salesforce Lightning platform.

Installation

$ npm install eslint @salesforce/eslint-plugin-lightning --save-dev

Usage

Add this plugin to your ESLint configuration and extend your desired configuration. See ESLint documentation for details.

{
    "plugin": ["@salesforce/eslint-plugin-lightning"],
    "rules": {
        "@salesforce/lightning/no-moment": "error",
        "@salesforce/lightning/prefer-i18n-service": "error"
    }
}

Rules

Internationalization rules

Rule IDDescriptionFixable
lightning/no-aura-localization-serviceprevent usage of $A.localizationService
lightning/no-momentprevent usage of moment library
lightning/prefer-i18n-servicesuggest usage of @salesforce/i18n-service over direct calls to Intl

Apex rules

Rule IDDescriptionFixable
lightning/valid-apex-method-invocationenforce invoking Apex methods with the right arguments

Keywords

FAQs

Package last updated on 16 Nov 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc