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 ESLint rules

  • 0.12.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3K
increased by2.59%
Maintainers
6
Weekly downloads
 
Created
Source

@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

Rule IDDescriptionFixable Using
@locker/locker/blocked-document-propertiesdisallow blocked Document properties
@locker/locker/blocked-element-propertiesdisallow blocked Element properties
@locker/locker/blocked-html-element-propertiesdisallow blocked HTMLElement properties
@locker/locker/blocked-html-iframe-element-propertiesdisallow blocked HTMLIframeElement properties
@locker/locker/empty-window-locationwindow.location is empty@locker/rollup-plugin
@locker/locker/no-async-awaitdisallow async await syntax usage@locker/rollup-plugin
@locker/locker/no-document-domain-assignmentdisallow document.domain assignment
@locker/locker/no-dynamic-importdisallow dynamic import@locker/rollup-plugin
@locker/locker/no-import-platform-resource-loaderdisallow import or export from 'lightning/platformResourceLoader'
@locker/locker/null-document-locationdocument.location is 'null'@locker/rollup-plugin
@locker/locker/null-shadow-root-hostshadowRoot.host is 'null'
@locker/locker/null-window-topwindow.top is 'null' --fix or @locker/rollup-plugin

Keywords

FAQs

Package last updated on 24 Feb 2021

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