# @copyist/eslint-plugin

> eslint-plugin

Latest version **0.1.0-alpha.1** (published 2021-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @copyist/eslint-plugin
pnpm add @copyist/eslint-plugin
yarn add @copyist/eslint-plugin
bun add @copyist/eslint-plugin
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-alpha.1 |
| Published | 2021-01-21 |
| First published | 2021-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | ooooevan |

## Links

- npm: https://www.npmjs.com/package/@copyist/eslint-plugin
- Repository: https://github.com/ooooevan/copyist
- Homepage: https://github.com/ooooevan/copyist.git#readme
- Issues: https://github.com/ooooevan/copyist/issues
- npm.io page: https://npm.io/package/@copyist/eslint-plugin

## Recent versions

- 0.1.0-alpha.1 (latest) — 2021-01-21
- 0.1.0-alpha.0 — 2021-01-21
- 0.0.3-alpha.6 — 2021-01-18
- 0.0.3-alpha.5 — 2021-01-17
- 0.0.3-alpha.4 — 2021-01-17
- 0.0.3-alpha.3 — 2021-01-17
- 0.0.3-0.0.3-alpha.1.0 — 2021-01-17
- 0.0.2 — 2021-01-17
- 0.0.2-alpha.2 — 2021-01-17

## README

# @copyist/eslint-plugin

eslint插件 

```bash
yarn add @copyist/eslint-plugin -D
```

需要配合相关依赖
```bash
yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb-base -D # js # prettier@2.0.0?
yarn add eslint-config-airbnb eslint-plugin-react -D  # react
yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser -D  # ts
```



.vscode/settings.json
```json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
}
```

.eslintrc.json
```json
{
  "extends": ["plugin:@copyist/react-ts"],
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "plugins": ["@copyist"]
}
```

配合husky
```bash
yarn add husky lint-staged
```
```json
{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{ts,tsx,js,jsx}": [
      "eslint --fix"
    ]
  }
}
```




参考[linxiaowu66/eslint-config-templates](https://github.com/linxiaowu66/eslint-config-templates)、[eslint-config-ali](https://github.com/alibaba/f2e-spec/tree/main/packages/eslint-config-ali)等

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