Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isayme/eslint-config

my eslint config
https://github.com/isayme/eslint-config

Last synced: 13 days ago
JSON representation

my eslint config

Awesome Lists containing this project

README

        

# @isayme/eslint-config

ESLint 支持 [共享配置](https://eslint.org/docs/developer-guide/shareable-configs)

# 如何使用

## Javascript

安装依赖:

```
npm i --save-dev eslint \
prettier \
eslint-plugin-import \
eslint-config-prettier
```

安装 `npm i --save-dev @isayme/eslint-config`

```
// 你的 .eslintrc
{
"root": true,
"extends": "@isayme/eslint-config/javascript"
}
```

## Typescript

安装依赖:

```
npm i --save-dev eslint \
typescript \
prettier \
eslint-plugin-import \
eslint-config-prettier \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin
```

安装 `npm i --save-dev @isayme/eslint-config`

```
// 你的 .eslintrc
{
"root": true,
"extends": "@isayme"
}
```