open-index/open-npm huggingface dataset:
npm package: @haiyaotec/eslint-config
Description: Sudongyuer's ESLint config
Author: sudongyuer
Latest version: 0.1.5

# @haiyaotec/eslint-config

<p align="center">
<img src="https://cdn.staticaly.com/gh/sudongyuer/image-bed@master/20220703/icon.2c5k1lu0fkkk.webp" height="150">
</p>

<p align="center">
  <a href="https://npmjs.com/package/@haiyaotec/eslint-config"><img src="https://img.shields.io/npm/v/@haiyaotec/eslint-config?color=a1b858&label="></a>
<p>

- Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone without Prettier)
- TypeScript, Vue, React out-of-box
- Lint also for json, yaml, markdown
- Sorted imports, dangling commas for cleaner commit diff
- Reasonable defaults, best practices, only one-line of config


## Usage

### Install

```bash
pnpm add -D eslint @haiyaotec/eslint-config
```

### Config `.eslintrc`

```json
{
  "extends": "@haiyaotec"
}
```

> You don't need `.eslintignore` normally as it has been provided by the preset.

### Add script for package.json

For example:

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
```

### Config WebStorm auto fix


![](https://tva1.sinaimg.cn/large/e6c9d24egy1h3tvp96c74j212l0u077u.jpg)

### Config VS Code auto fix

Create `.vscode/settings.json`

```json
{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
```

## Author

sudongyuer email:976499226@qq.com

## License

MIT
npm package: @haiyaotec/window-channel
Description: iframe window message channel
Author: sudongyuer
Latest version: 1.0.3

<p align="center">
<img src="https://tva1.sinaimg.cn/large/e6c9d24egy1h0ehoj8eesj20lw0kamxu.jpg" height="200"/>
</p>

<h1 align="center">
window-channel
</h1>
<p align="center">
A very simple window communication library.
<p>
<p align="center">
  <a href="https://www.npmjs.com/package/@haiyaotec/window-channel"><img src="https://img.shields.io/npm/v/@haiyaotec/window-channel?color=a1b858&label="></a>
  <a href="https://github.com/HaiyaoTec/window-channel" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/HaiyaoTec/window-channel?style=social"></a>
<p>
<h3 align="center">
<a ><i>Get Start!</i></a>
</h3>
<br>

# Install
```
npm install @haiyaotec/window-channel
```

## Usage/Examples
`Client`
```typescript
    import {WindowChannel} from '@haiyaotec/window-channel'
    let client = WindowChannel.newChannelClient(window,iFrame.contentWindow,"*")
    function f() {
        client.request('/hello', '客户端发送的消息', 1000)
            .then((value) => {
                console.log(value)
            })
            .catch((err) => {
                console.log(err)
            })
    }
    setInterval(f,3000)
```

`Server`
```typescript

import {WindowChannel} from '@haiyaotec/window-channel'
let service=WindowChannel.newChannelService(window)

service.listen('/hello',(value)=>{
    console.log(value)
    return '服务端发送的消息'
})

service.observe('/dingyue',()=>{
    console.log('订阅成功')
})

setTimeout(()=>{
    service.broadcast('/dingyue','聊天室广播内容')
},20000)

```

## License

[MIT](./LICENSE) License © 2021-Present [YuDong Su](https://github.com/sudongyuer)