Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@locker/eslint-config-locker

salesforce-experience-platform-emu29.1kSEE LICENSE IN LICENSE.txt0.25.2

Lightning Web Security ESLint configurations

eslint, locker, salesforce, salesforce-experience-platform

readme

@locker/eslint-config-locker

Lightning Web Security ESLint configurations

Installation

$ yarn add --dev eslint @locker/eslint-config-locker

Usage

Add the appropriate configuration to the extends field in your configuration.

Example of .eslintrc:

{
    "extends": ["@locker/eslint-config-locker"]
}

For more details about configuration, please refer to the dedicated section in the ESLint documentation:
https://eslint.org/docs/user-guide/configuring#using-a-shareable-configuration-package

Configurations

This package exposes 2 configurations for Lightning Web Security rules. Unless stated otherwise, each configuration assumes use of @locker/rollup-plugin in your build pipeline.

@locker/eslint-config-locker/base configuration

Goal: Detect foundational distortions of Lightning Web Security.

Goal: Detect supplemental distortions of Lightning Web Security.