open-index/open-npm huggingface dataset:
npm package: @lints-config/eslint-config-react-ts
Description: react + typescript项目通用eslint配置
Author: wenzhen
Latest version: 1.0.0

# eslint-config-react-ts
统一配置 react 技术栈 ESLint

## 安装

```bash
npm i @lints-config/eslint-config-react-ts -D
```

## 使用
1、修改 `eslint` 配置文件，将 `extends` 配置成 `@lints-config/eslint-config-react-ts`

```json
{
  "extends": ["@lints-config/eslint-config-react-ts"]
}
```

2、添加 `prettier` 配置，如果存在则跳过。

3、添加 `tsconfig.json` 配置，如果存在则跳过。
npm package: @lints/cotton
Description: A tool library
Author: lints
Latest version: 1.2.2

## 说明

**通用工具方法库**

## 使用

```shell
npm install @lints/cotton or yarn add @lints/cotton
```

可以全部默认导入，也可以按需导入

```ts
import C, { validatePhoneNum } from "@lints/cotton";
console.log(C.getQueryParams("?foo=121"));
console.log(validatePhoneNum("13888888888"));
```

### 浏览器中使用

```html
<script src="../dist/index.umd.js"></script>
<script>
  $c.getQueryParams("https://www.foo.com?foo=123");
  $c.validatePhoneNum("13888888888");
</script>
```

## 文档

### getQueryParams

获取 url 参数

```ts
getQueryParams("https://www.baidu.com?foo=123");
// 输出: { foo: '123' }
```

### dateFormat

时间戳转 YYYY-MM-DD hh:mm:ss

```ts
dateFormat(1678434136000);
// 输出: 2023-03-10 15:42:16

dateFormat(1678434136000, "YYYY/MM/DD hh:mm:ss");
// 输出: 2023/03/10 15:42:16
```

### getTimeStamp

YYYY-MM-DD hh:mm:ss 转换成毫秒时间戳

```ts
getTimeStamp("2023-03-10 15:42:16");
// 输出: 1678434136000
```

### getAmountChineseNumeral

金额转中文大写金额

```ts
getAmountChineseNumeral(20.5);
// 输出: 贰拾元伍角
```

### validatePhoneNum

验证手机号码

```ts
validatePhoneNum("122");
// 输出: false

validatePhoneNum("13888888888");
// 输出: true
```

### getDataType

数据类型判断

```ts
getDataType({});
// 输出: object

getDataType("");
// 输出: string
```

### throttle

节流函数

```ts
const throttleFn = throttle(foo(), 1000);
throttleFn();
```

### debounce

防抖函数

```ts
const debounceFn = debounce(foo(), 1000);
debounceFn();
```

### equalNullObject

对象是否为空对象

```ts
equalNullObject({});
// 输出: true

equalNullObject({ foo: 1 });
// 输出: false

equalNullObject(123123);
// 输出: 传入的数据类型必须是对象类型
```
npm package: @linttrap/oem
Description: A novel UI library for writing reactive html with vanilla javascript
Author: @linttrapmedia
Latest version: 3.0.0

# OEM

UI, on command.

## Overview

OEM is an agent-first UI framework engineered for seamless human-AI collaboration. It introduces a distinctive compositional syntax that declaratively unifies markup, styling, and behavior. Rather than shipping pre-built components, OEM provides a design-token-driven engine and a set of composable traits that let AI agents generate any UI from a natural-language prompt.

## Install

```bash
npm install @linttrap/oem   # or pnpm / yarn / bun
```

## Agent Setup

OEM ships agent specs in the package. Copy them into whatever "config" folder applies to your setup. For Claude, this would be:

```bash
cp -r node_modules/@linttrap/oem/.github/ <your-agent-folder>
```

Now use the agent, in claude this would be:

```
/oem <prompt>
```

## Vibe Coding

The [oem.js.org](https://oem.js.org/) website includes a Prompt Wizard that lets you visually design a UI and generate the corresponding OEM code.

## Documentation

- **Human Docs** — [oem.js.org](https://oem.js.org/)
- **Agent Specs** — [specs/agents/oem.md](./specs/agents/oem.md)

## License

MIT
npm package: @linusborg/eslint-config
Description: Personal Eslint config presets
Author: Thorsten Lünborg
Latest version: 0.5.0

# `@linusborg/eslint-config`

Personal presets used in my projects.

Included:

- @typescript-eslint
- compatible with prettier
- eslint-plugin-unused-imports
- Vue support (default)
- modular approach to adjust for different environments

## Usage

### Common Usage example

Vue application with TypeScript. Also enables different globals for config files (ran in node) vs. app src code (ran in browser).

```js
// eslint.config.js
import {
	vueConfig,
	browserGlobalsConfig,
	nodeGlobalsConfig,
} from '@linusborg/eslint-config'

export default [
	...vueConfig,
	{
		// for config files
		files: ['*.ts', '*.js'],
		...nodeGlobalsConfig,
	},
	{
		// for browser code
		files: ['src/**/*.ts', 'src/**/*.js', 'src/**/*.vue'],
		...browserGlobalsConfig,
	},
]
```

## Exports

### `vueConfig`

Use this if you're building a Vue based application, plugin or library that will involve SFCs.

### `baseConfig`

Use this if you are building a library or application that does not involve Vue SFCs.

## `nodeGlobalsConfig`

This adds node globals, so should be used with a file filter for config files.

```js
{
	files: ['*.ts', '*.js'],
	...nodeGlobalsConfig,
}
```

### `browserGlobalsConfig`

This should be combined with the vue or base config for the actual source files when your app/library will run in the browser.

```js
{
	files: ['src/**/**ts', 'src/**/*.js', 'src/**/*.vue'],
	...browserGlobalsConfig,
}
```

### `sharedSSRGlobalsConfig`

This should be combined with the vue or base config for the actual source files when your app/library will run in the browser AND the server.

```js
{
	files: ['src/**/**ts', 'src/**/*.js', 'src/**/*.vue'],
	...sharedSSRGlobalsConfig,
}
```

### `globals`

Re-export of the `globals` package, in case you need it for more custom configs.

see https://www.npmjs.com/package/globals