Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abeet/eslint-plugin-elrond-childapp-bound

前端微服务的子应用不允许添加全局变量/方法、不允许写cookie的ESLint插件
https://github.com/abeet/eslint-plugin-elrond-childapp-bound

eslint-rules

Last synced: 22 days ago
JSON representation

前端微服务的子应用不允许添加全局变量/方法、不允许写cookie的ESLint插件

Awesome Lists containing this project

README

        

# eslint-plugin-elrond-childapp-bound

elrond-childapp-bound 是一个ESLint插件,对代码中如下写法作出警告:
- 添加全局变量/方法
- 写cookie

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-elrond-childapp-bound`:

```
$ npm install eslint-plugin-elrond-childapp-bound --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-elrond-childapp-bound` globally.

## Usage

Add `elrond-childapp-bound` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": [
"elrond-childapp-bound"
]
}
```

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

```json
{
"rules": {
"elrond-childapp-bound/rule-name": 2
}
}
```

## Supported Rules

* Fill in provided rules here