Socket
Socket
Sign inDemoInstall

@zohodesk/eslint-plugin-zsecurity

Package Overview
Dependencies
1
Maintainers
8
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zohodesk/eslint-plugin-zsecurity

To prevent from xss and to make secure build


Version published
Maintainers
8
Weekly downloads
200
decreased by-18.37%
Install size
17.2 kB

Weekly downloads

Readme

Source

eslint-plugin-security

To prevent from xss and to make secure build

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-zsecurity:

$ npm install eslint-plugin-zsecurity --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-zsecurity globally.

Usage

Add @zohodesk/zsecurity to the plugins section of your .eslintrc configuration file.

{
  "plugins": ["@zohodesk/zsecurity"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@zohodesk/zsecurity/rule-name": 2
  }
}

List of supported rules

  • @zohodesk/zsecurity/no-unsecure-html,
  • @zohodesk/zsecurity/no-protocol-check

Keywords

FAQs

Last updated on 20 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc