open-index/open-npm huggingface dataset:
npm package: @right-menu/react
Description: ## 官网
Latest version: 0.0.5


# 一个基于react的右键菜单插件

## 官网

- [官方文档 - 首页](https://buuing.github.io/right-menu/)

## 通过 import 使用

### 安装

```shell
npm i @right-menu/react
```

### 使用

```jsx
import RightMenu from '@right-menu/react'

render () {
  return <RightMenu options={[{
    type: 'li',
    text: 'Hello RightMenu',
  }]}>
    <div style="height: 300px; background: #ccc">测试右键菜单</div>
  </RightMenu>
}
```

```jsx
import { useRightMenu } from '@right-menu/react'

function App(){
  const menuRef = useRightMenu([
    {
      type: 'li',
      text: 'Hello RightMenu'
    }
  ])
  return <div ref={menuRef}>测试右键菜单</div>
}
```
npm package: @rightaim/coding-craft
Description: Shared code quality tooling for the Right Aim factory — Biome configs, ESLint configs, AI guardrails
Latest version: 1.0.0

# @rightaim/coding-craft

Shared code quality configs for the Right Aim factory. Biome + ESLint, layered by stack.

## Install

```bash
# For a Vite SPA
pnpm add -D @rightaim/coding-craft @biomejs/biome eslint typescript-eslint eslint-plugin-react-refresh

# For Next.js
pnpm add -D @rightaim/coding-craft @biomejs/biome eslint typescript-eslint @next/eslint-plugin-next

# For Tauri
pnpm add -D @rightaim/coding-craft @biomejs/biome eslint typescript-eslint eslint-plugin-react-refresh
```

## Usage

**biome.json:**
```json
{
  "$schema": "https://biomejs.dev/schemas/latest/schema.json",
  "extends": ["@rightaim/coding-craft/biome/vite-spa"]
}
```

**eslint.config.mjs:**
```js
import { viteSpa } from '@rightaim/coding-craft/eslint';
export default viteSpa();
```

**For monorepo workspaces:**
```js
import { next } from '@rightaim/coding-craft/eslint';
export default next({ rootDir: import.meta.dirname });
```

## Scripts

```json
{
  "lint": "biome check src/",
  "lint:fix": "biome check --write src/",
  "lint:ci": "biome check src/ && eslint .",
  "typecheck": "tsc --noEmit"
}
```