@locker/eslint-config-locker

0.22.1 • Public • Published

@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.

@locker/eslint-config-locker/recommended configuration

Goal: Detect supplemental distortions of Lightning Web Security.

Package Sidebar

Install

npm i @locker/eslint-config-locker

Weekly Downloads

3,110

Version

0.22.1

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • achabot
  • garychangsf
  • mjasso
  • caridy
  • jdalton
  • t.lau
  • dejang
  • rwaldron