@locker/eslint-plugin-locker
Locker Next eslint rules.
Installation
$ npm install eslint @locker/eslint-plugin-locker --save-dev
Usage
Add locker
to the plugins
section of your configuration. Then configure the
desired rules in the rules
sections.
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 eslint-config-locker
sharable configuration package.
Rules
Locker