@zohodesk/eslint-plugin-zsecurity

0.0.1-beta.4 • Public • Published

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

/@zohodesk/eslint-plugin-zsecurity/

    Package Sidebar

    Install

    npm i @zohodesk/eslint-plugin-zsecurity

    Weekly Downloads

    298

    Version

    0.0.1-beta.4

    License

    ISC

    Unpacked Size

    9.02 kB

    Total Files

    10

    Last publish

    Collaborators

    • arunkumar.ps
    • hariharan_vs
    • eldhose_saji
    • sankara.subramanian
    • madhubalan
    • deekay.npm
    • sheikbasheeth
    • jos33
    • rajsekar.haribalan
    • selvakumar.pl
    • muthumari
    • sundarrajkumar.m
    • prakash.m
    • maheshmdr
    • _dev_johnson
    • karuppiah.r
    • navas-0968
    • vallinayagam.t
    • iambk
    • lakshmi_ts
    • mariappan.r
    • antro.j
    • ganeshkumar.m
    • vimalesan
    • skumaresan
    • kathiresan.r
    • jesinth
    • sriramamoorthy
    • lingam
    • ponkumar.s
    • sudalaimuthu
    • iniankarthick
    • johnson_raavanan
    • ksamy2020
    • kumaresanm
    • villuvicky
    • indragith