# @oazhu/eslint-config-vue

> 关于vue,原生js,ts的eslint配置

Latest version **1.0.4** (published 2023-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @oazhu/eslint-config-vue
pnpm add @oazhu/eslint-config-vue
yarn add @oazhu/eslint-config-vue
bun add @oazhu/eslint-config-vue
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-06-12 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 35.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | azhu |
| Maintainers | wadeazhu |
| Keywords | vue, ts, js |

## Links

- npm: https://www.npmjs.com/package/@oazhu/eslint-config-vue
- Repository: https://github.com/oazhu/eslint-config-vue
- Homepage: https://github.com/oazhu/eslint-config-vue#readme
- Issues: https://github.com/oazhu/eslint-config-vue/issues
- npm.io page: https://npm.io/package/@oazhu/eslint-config-vue

## Dependencies (5)

- [eslint](https://npm.io/package/eslint.md) ^8.19.0
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^9.3.0
- [vue-eslint-parser](https://npm.io/package/vue-eslint-parser.md) ^9.0.3
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.30.6
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.30.6

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-06-12
- 1.0.3 — 2023-06-12
- 1.0.2 — 2023-06-12
- 1.0.1 — 2023-06-12
- 1.0.0 — 2023-06-12

## README

## 前端规范校验

### 参考文档
* eslint <http://eslint.cn/docs/user-guide/getting-started>
* airbnb <https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base>
* eslint-plugin-vue <https://eslint.vuejs.org/>
* typescript-eslint <https://typescript-eslint.io/>


### 使用方法
**如果不使用prettier `eslint-config-prettier` 和 `eslint-plugin-prettier`无需下载**
npm
`npm i -D eslint eslint-plugin-vue @typescript-eslint/eslint-plugin @typescript-eslint/parser @az/eslint-config-vue eslint-plugin-prettier eslint-config-prettier`

yarn
`yarn add -D eslint eslint-plugin-vue @typescript-eslint/eslint-plugin @typescript-eslint/parser @az/eslint-config-vue eslint-plugin-prettier eslint-config-prettier`


```javascript
// .eslintrc.js
module.exports = {
  env: {
    es6: true,
    browser: true,
    node: true
  },
  parserOptions: {
    parser: '@typescript-eslint/parser',
    sourceType: 'module',
    ecmaFeatures: {
      jsx: true
    }
  },
  // 如果不使用prettier 'plugin:prettier/recommended'不建议添加
  extends: ['@az/eslint-config-vue', 'plugin:prettier/recommended']
}

```


建议搭配prettier使用 
```javascript
// prettier.config.js
module.exports = {
  printWidth: 120,
  semi: false,
  vueIndentScriptAndStyle: false,
  singleQuote: true,
  trailingComma: 'none',
  proseWrap: 'never',
  htmlWhitespaceSensitivity: 'strict',
  endOfLine: 'auto'
}

```

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