0.1.2 • Published 8 years ago

eslint-plugin-no-document-cookie v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

eslint-plugin-no-document-cookie

npm version Build Status dependencies Status devDependencies Status

find document.cookie

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-document-cookie:

$ npm install eslint-plugin-no-document-cookie --save-dev

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

Usage

Add no-document-cookie to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "no-document-cookie"
    ]
}

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

{
    "rules": {
        "no-document-cookie/rule-name": 2
    }
}

Supported Rules

  • no-document-cookie: Find 'document.cookie' from the code.