Skip to content

Commit d5bf8e8

Browse files
committed
release: v1.1.0
1 parent f595749 commit d5bf8e8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
🔧 一个 TypeScript 的 ESLint 配置,使用 Prettier 格式化代码。
44

5+
> 如果需要对 Vue 的代码进行格式化,可以使用 [@longwoo/eslint-config-vue](https://github.com/long-woo/eslint-config-vue)
6+
57
## 使用
68

79
1.安装依赖
810

911
```sh
10-
pnpm add -D eslint @longwoo/eslint-config-typescript-prettier
12+
pnpm add -D @longwoo/eslint-config-typescript-prettier
1113

1214
# or
13-
yarn add -D eslint @longwoo/eslint-config-typescript-prettier
15+
yarn add -D @longwoo/eslint-config-typescript-prettier
1416

1517
# or
1618
npm install --save-dev @longwoo/eslint-config-typescript-prettier
@@ -29,7 +31,7 @@ npm install --save-dev @longwoo/eslint-config-typescript-prettier
2931
```json
3032
{
3133
"scripts": {
32-
"eslint": "eslint --ext .js,.ts,.tsx src"
34+
"eslint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
3335
}
3436
}
3537
```

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-env node */
21
module.exports = {
32
parser: '@typescript-eslint/parser',
43
plugins: ['@typescript-eslint'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@longwoo/eslint-config-typescript-prettier",
33
"version": "1.0.0",
4-
"description": "Typescript prettier eslint 配置",
4+
"description": " 一个 TypeScript 的 ESLint 配置,使用 Prettier 格式化代码。",
55
"main": "index.js",
66
"keywords": [
77
"eslint",

0 commit comments

Comments
 (0)