Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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插件
- Host: GitHub
- URL: https://github.com/abeet/eslint-plugin-elrond-childapp-bound
- Owner: abeet
- Created: 2018-11-28T11:51:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T12:06:45.000Z (about 6 years ago)
- Last Synced: 2024-11-14T02:41:43.665Z (about 2 months ago)
- Topics: eslint-rules
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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