eslint-plugin-no-document-cookie

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i eslint-plugin-no-document-cookie

Weekly Downloads

343

Version

0.1.2

License

MIT

Last publish

Collaborators

  • sota1235