1.0.1 • Published 2 years ago

eslint-plugin-hlb-rule v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-hlb-rule

Improve security for NodeJs

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-hlb-rule:

npm install eslint-plugin-hlb-rule --save-dev

Usage

Add hlb-rule to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "hlb-rule"
    ]
}

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

{
    "rules": {
        "hlb-rule/rule-name": 2
    }
}

Supported Rules

Lists of Supported Rules:

 "rules": {
        "hlb-rule/cert-ciphers":1,
        "hlb-rule/cert-reject-unauthorized":1,
        "hlb-rule/cert-secure-option":1,
        "hlb-rule/content-security-policy":1,
        "hlb-rule/express-cors":1,
        "hlb-rule/express-helmet":1,
        "hlb-rule/https-prod":1,
        "hlb-rule/session-key":1,
        "hlb-rule/session-resave":1,
        "hlb-rule/session-save-uninitialized":1,
        "hlb-rule/session-secret":1,
        "hlb-rule/session-secure-cookie":1
    }