yunfengsa / eslint-safe-value

eslint插件,用户静态分析安全取值的潜在风险

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-dxymom

dxy-mom plugin

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @dxy-mom/eslint-plugin-dxymom:

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

Note: If you installed ESLint globally (using the -g flag) then you must also install @dxy-mom/eslint-plugin-dxymom globally.

Usage

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

{
    "plugins": [
        "@dxy-mom/eslint-plugin-dxymom"
    ]
}

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

{
    "rules": {
        "@dxy-mom/dxymom/safe-value": "warn"
    }
}

Supported Rules

  • safe-value: 安全取值警告

About

eslint插件,用户静态分析安全取值的潜在风险


Languages

Language:JavaScript 100.0%