Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@locker/eslint-plugin-locker

Package Overview
Dependencies
Maintainers
6
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/eslint-plugin-locker

Locker Next eslint rules

  • 0.11.16
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@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

Rule IDDescriptionFixable
locker/blocked-document-propertiesdisallow blocked Document properties
locker/blocked-element-propertiesdisallow blocked Element properties
locker/blocked-html-element-propertiesdisallow blocked HTMLElement properties
locker/blocked-html-iframe-element-propertiesdisallow blocked HTMLIframeElement properties
locker/empty-window-locationwindow.location is empty
locker/no-async-awaitdisallow async await syntax usage
locker/no-document-domain-assignmentdisallow document.domain assignment
locker/no-dynamic-importdisallow dynamic import
locker/null-document-locationdocument.location is 'null'
locker/null-shadow-root-hostshadowRoot.host is 'null'
locker/null-window-topwindow.top is 'null'🔧

Keywords

FAQs

Package last updated on 12 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc