# sguoyi-ui

> A basic components library

Latest version **1.1.1** (published 2022-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install sguoyi-ui
pnpm add sguoyi-ui
yarn add sguoyi-ui
bun add sguoyi-ui
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-05-25 |
| First published | 2022-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 45.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Maintainers | xiaozhu188 |
| Keywords | Vue3, UI |

## Links

- npm: https://www.npmjs.com/package/sguoyi-ui
- npm.io page: https://npm.io/package/sguoyi-ui

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-05-25

## README

# 激活 husky

#### 安装并初始化

git init
npx huskt-init && npm install

#### 修改 .husky/pre-commit hook 文件的触发命令

npm run eslint (即 npx eslint src/\*\* --fix --ext .vue,.js,.ts,.jsx,.tsx)

npm run eslint 会对 src 目录下所有目标文件进行 eslint,但有事这并不是我们想要的;添加 lint-staged 仅对暂存区(即已经被 git add 的文件)的文件进行 eslint;

# 添加 lint-staged

#### 安装

npm i lint-staged -D

#### 在 package.json 里增加 lint-staged 配置项

"lint-staged": {
"_.{ts,tsx,js,jsx,vue}": "eslint --fix",
"_.{vue,css,less}": "stylelint --fix" // 这里是添加 stylelint 的
}

#### 修改 .husky/pre-commit hook 的触发命令为: npx lint-staged

npx lint-staged

---
_Source: https://npm.io/package/sguoyi-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
