# @iyoha/eslint-config

> eslint config for vue | typescript projects

Latest version **0.0.2** (published 2021-03-06) · MIT license · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2021-03-06 |
| First published | 2020-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 33.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | wanghansongbupt@163.com |
| Maintainers | wanghans |
| Keywords | vue, typescript, eslint, config, styleguide, eslintconfig |

## Links

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

## Dependencies (13)

- [typescript](https://npm.io/package/typescript.md) ~3.9.3
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.20.2
- [@vue/cli-plugin-babel](https://npm.io/package/@vue/cli-plugin-babel.md) ~4.4.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^4.2.1
- [@vue/cli-plugin-eslint](https://npm.io/package/@vue/cli-plugin-eslint.md) ~4.4.0
- [eslint-plugin-standard](https://npm.io/package/eslint-plugin-standard.md) ^4.0.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^2.33.0
- [@vue/cli-plugin-typescript](https://npm.io/package/@vue/cli-plugin-typescript.md) ~4.4.0
- [@vue/eslint-config-standard](https://npm.io/package/@vue/eslint-config-standard.md) ^5.1.2
- [@vue/eslint-config-typescript](https://npm.io/package/@vue/eslint-config-typescript.md) ^5.0.2
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^2.33.0
- [@release-it/conventional-changelog](https://npm.io/package/@release-it/conventional-changelog.md) ^1.1.4

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2021-03-06
- 0.0.1 — 2020-06-21
- 0.0.1-beta — 2020-06-21
- 0.0.1-alpha — 2020-06-21

## README

# eslint-config
> An opinionated eslint config for vue | typescript.

### 💿 Install
```bash
yarn add @iyoha/eslint-config -D
# OR
npm install @iyoha/eslint-config --save-dev
```

### 🚀 Usage
#### 基本eslint
Create an .eslintrc.js in the root directory of your project, then copy the following content into it:
```js
module.exports = {
    extends: [
        '@iyoha/eslint-config',
    ],
    env: {
        // Your environments (which contains several predefined global variables)
        //
        // browser: true,
        // node: true,
        // mocha: true,
        // jest: true,
        // jquery: true
    },
    globals: {
        // Your global variables (setting to false means it's not allowed to be reassigned)
        //
        // myGlobal: false
    },
    rules: {
        // Customize your rules
    }
};
```

#### vue
> vue-cli4
Create an .eslintrc.js in the root directory of your project, then copy the following content into it:
```js
module.exports = {
    extends: [
        // notice: please in the following order
        '@iyoha/eslint-config/vue',
        '@iyoha/eslint-config',
    ],
    env: {
        // Your environments (which contains several predefined global variables)
        //
        // browser: true,
        // node: true,
        // mocha: true,
        // jest: true,
        // jquery: true
    },
    globals: {
        // Your global variables (setting to false means it's not allowed to be reassigned)
        //
        // myGlobal: false
    },
    rules: {
        // Customize your rules
    }
};
```

#### typescript
Create an .eslintrc.js in the root directory of your project, then copy the following content into it:
```js
module.exports = {
    extends: [
        // notice: please in the following order
        '@iyoha/eslint-config/typescript',
        '@iyoha/eslint-config',
    ],
    env: {
        // Your environments (which contains several predefined global variables)
        //
        // browser: true,
        // node: true,
        // mocha: true,
        // jest: true,
        // jquery: true
    },
    globals: {
        // Your global variables (setting to false means it's not allowed to be reassigned)
        //
        // myGlobal: false
    },
    rules: {
        // Customize your rules
    }
};
```

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