@locker/eslint-config-locker
Locker 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 your usage.
@locker/eslint-config-locker/base
configuration
Goal:
Prevent common pitfalls with Lightning Locker.
Rules:
Locker specific rules.
@locker/eslint-config-locker/recommended
configuration
Goal:
Warn about common pitfalls with Lightning Locker that can be fixed by using --fix
or @locker/rollup-plugin
.
Rules:
Locker specific rules.