@locker/eslint-plugin-locker
Locker ESLint rules
Installation
$ yarn add --dev eslint @locker/eslint-plugin-locker
Usage
Add @locker/eslint-plugin-locker
to the plugins
section of your configuration.
Then configure the desired rules in the rules
section.
Example of .eslintrc
:
{
"plugins": ["@locker/eslint-plugin-locker"],
"rules": {
"@locker/locker/blocked-element-properties": "error",
"@locker/locker/no-document-domain-assignment": "error",
"@locker/locker/null-window-top": "error"
}
}
For more details about configuration please refer to the dedicated section in
the ESLint documentation:
https://eslint.org/docs/user-guide/configuring
Configurations
To choose configuration settings, install the @locker/eslint-config-locker
sharable configuration package.
Rules
Locker