Skip to content

Commit

Permalink
feat: 更新版本0.0.8,更新使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
eyea committed Dec 6, 2023
1 parent 4fb3cde commit d89ad21
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
50 changes: 44 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AfuTeam eslint plugin

## 安装
```bash
npm i @afuteam/eslint-plugin-fe@latest -D
npm i eslint @babel/core @babel/eslint-parser @afuteam/eslint-plugin-fe@latest -D
```

## 配置
Expand All @@ -30,7 +30,30 @@ npm i @afuteam/eslint-plugin-fe@latest -D
}
```

### js + typescript4

```bash
npm install --save-dev eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin @afuteam/eslint-plugin-fe@latest
```

```json
{
"plugins": [
"@afuteam/fe"
],
"extends": [
"plugin:@afuteam/fe/js",
"plugin:@afuteam/fe/typescript4",
],
}
```

### js + vue2

```bash
npm install --save-dev eslint @babel/core @babel/eslint-parser vue-eslint-parser eslint-plugin-vue @afuteam/eslint-plugin-fe@latest
```

```json
{
"plugins": [
Expand All @@ -44,6 +67,11 @@ npm i @afuteam/eslint-plugin-fe@latest -D
```

### js + react

```bash
npm install --save-dev eslint @babel/core @babel/eslint-parser @babel/preset-react@latest eslint-plugin-react @afuteam/eslint-plugin-fe@latest
```

```json
{
"plugins": [
Expand All @@ -57,6 +85,11 @@ npm i @afuteam/eslint-plugin-fe@latest -D
```

### js + vue3

```bash
npm install --save-dev eslint @babel/core @babel/eslint-parser vue-eslint-parser eslint-plugin-vue @afuteam/eslint-plugin-fe@latest
```

```json
{
"plugins": [
Expand All @@ -72,7 +105,7 @@ npm i @afuteam/eslint-plugin-fe@latest -D
### js + typescript4 + vue2

```bash
pnpm i @babel/core @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescript eslint eslint-plugin-vue vue-eslint-parser @afuteam/eslint-plugin-fe@latest
npm install --save-dev @babel/core @babel/eslint-parser @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/eslint-config-typescript eslint eslint-plugin-vue vue-eslint-parser @afuteam/eslint-plugin-fe@latest
```

```json
Expand Down Expand Up @@ -105,22 +138,27 @@ pnpm i @babel/core @babel/eslint-parser @typescript-eslint/eslint-plugin @typesc
"@afuteam/fe"
],
"extends": [
"plugin:@afuteam/fe/vue3",
"plugin:@afuteam/fe/typescript4",
"plugin:@afuteam/fe/vue3"
],
}
```

### typescript4 + react
<!-- typescript 4 -->
### js + typescript4 + react

```bash
npm install --save-dev eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-react @afuteam/eslint-plugin-fe@latest
```

```json
{
"plugins": [
"@afuteam/fe"
],
"extends": [
"plugin:@afuteam/fe/js",
"plugin:@afuteam/fe/react",
"plugin:@afuteam/fe/typescript4",
"plugin:@afuteam/fe/react"
],
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@afuteam/eslint-plugin-fe",
"version": "0.0.7",
"version": "0.0.8",
"description": "AfuTeam ESLint Rules",
"main": "./lib/index.js",
"exports": "./lib/index.js",
Expand Down

0 comments on commit d89ad21

Please sign in to comment.