Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/isayme/eslint-config
- Owner: isayme
- License: mit
- Created: 2020-09-17T13:37:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T12:14:27.000Z (about 4 years ago)
- Last Synced: 2024-12-11T20:09:13.801Z (13 days ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
}
```