All Projects → forcedotcom → eslint-plugin-aura

forcedotcom / eslint-plugin-aura

Licence: BSD-3-Clause license
Salesforce Lightning (Aura) specific linting rules for ESLint

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to eslint-plugin-aura

SimpleLightningComponents
A collection of custom Salesforce Lightning components to try to make Lightning development a little bit less frustrating
Stars: ✭ 37 (+54.17%)
Mutual labels:  salesforce-lightning, aura, aura-framework
Salesforce-Short-Hands
The main purpose of this repository is to put all the utilities in one place so that other developers can get help and they can also contribute to this repo.
Stars: ✭ 31 (+29.17%)
Mutual labels:  salesforce, salesforce-lightning
sfdx-lightning-api-component
⚡️ Promise-based service component for calling REST API from Lightning Aura Components without Named Credentials.
Stars: ✭ 62 (+158.33%)
Mutual labels:  salesforce, aura
Sfdc Ui Lookup
Salesforce Lookup Component (Aura version, maintenance only, see LWC version for updates)
Stars: ✭ 94 (+291.67%)
Mutual labels:  salesforce, aura
SF-Lightning-Lookup
Salesforce lightning dynamic lookup component.
Stars: ✭ 15 (-37.5%)
Mutual labels:  salesforce, salesforce-lightning
Lightning-Out-Demo
How to use Lightning component in node.js (External websites) by using Lightning Out. It shows how to enable CORS and SSL in Node.js with Video and complete source code.
Stars: ✭ 17 (-29.17%)
Mutual labels:  salesforce, salesforce-lightning
PaymentForm
A form that takes credit card and address information. Uses a ported version of jessie pollack's card component.
Stars: ✭ 40 (+66.67%)
Mutual labels:  salesforce, salesforce-lightning
Salesforce-Custom-Path-Assistant-LWC
A Salesforce custom path assistant built using only Lightning Web Components
Stars: ✭ 37 (+54.17%)
Mutual labels:  salesforce, salesforce-lightning
eslint-plugin-array-func
Rules for Array functions and methods.
Stars: ✭ 77 (+220.83%)
Mutual labels:  eslint-plugin, eslintplugin
eslint-plugin-yml
This ESLint plugin provides linting rules for YAML.
Stars: ✭ 40 (+66.67%)
Mutual labels:  eslint-plugin, eslintplugin
eslint-plugin-lodash-template
ESLint plugin for John Resig-style micro template, Lodash's template, Underscore's template and EJS.
Stars: ✭ 15 (-37.5%)
Mutual labels:  eslint-plugin, eslintplugin
one-pub-sub-lwc
One PubSub: A Declarative PubSub Library for Lightning Web Component and Aura Component
Stars: ✭ 19 (-20.83%)
Mutual labels:  salesforce, aura
uswds-sf-lightning-community
A Salesforce Lightning Community Theme and related components built upon US Web Design System
Stars: ✭ 24 (+0%)
Mutual labels:  salesforce, salesforce-lightning
lwc-redux
Integrate Redux with Lightning Web Component
Stars: ✭ 35 (+45.83%)
Mutual labels:  salesforce, salesforce-lightning
spaghetti-cmd-loader
Salesforce Custom Metadata Type Loader, designed for Lightning Experience
Stars: ✭ 13 (-45.83%)
Mutual labels:  salesforce, salesforce-lightning
Indicators
Indicators Lightning Web Component
Stars: ✭ 30 (+25%)
Mutual labels:  salesforce, salesforce-lightning
Eslint Plugin Lwc
Official ESLint rules for LWC
Stars: ✭ 51 (+112.5%)
Mutual labels:  eslint-plugin, salesforce
Sfdc Lax
The service Lightning Component to write a clear asynchronous JavaScript code
Stars: ✭ 109 (+354.17%)
Mutual labels:  salesforce, aura
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.
Stars: ✭ 19 (-20.83%)
Mutual labels:  eslint-plugin, eslintplugin
Typescript Eslint
✨ Monorepo for all the tooling which enables ESLint to support TypeScript
Stars: ✭ 10,831 (+45029.17%)
Mutual labels:  eslint-plugin, eslintplugin

eslint-plugin-aura

Build status NPM version

Salesforce Lightning (Aura) specific linting rules for ESLint.

Installation

npm install --save-dev @salesforce/eslint-plugin-aura

Usage

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"
  ]
}

Rules

Aura

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

Locker

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

Configurations

This package exposes 2 configurations for your usage.

@salesforce/eslint-plugin-aura/recommended configuration

Goal: Prevent common pitfalls with Lightning component development, and enforce other Salesforce platform restrictions.

Rules:

@salesforce/eslint-plugin-aura/locker configuration

Goal: Prevent Lightning Locker violations.

Rules:

  • @salesforce/eslint-plugin-aura/recommended rules.
  • Proper usage of document and window via the secure-document and secure-window rules, respectively.
  • Proper usage of Javascript intrinsic APIs via the ecma-intrinsics rule.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].