From 701950422cc7388193a086c8ab7024f852f80493 Mon Sep 17 00:00:00 2001 From: Plumbiu <3434909403@qq.com> Date: Tue, 28 Nov 2023 15:17:31 +0800 Subject: [PATCH] chore: code style --- .eslintrc | 5 +++-- package.json | 5 +++-- tsconfig.json | 11 +---------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.eslintrc b/.eslintrc index 0cb65a3d..e02f6986 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,7 @@ { - "extends": "@plumbiu", + "extends": ["@plumbiu", "prettier"], "rules": { - "import/named": 0 + "import/named": 0, + "import/no-duplicates": 0 } } diff --git a/package.json b/package.json index c1c3d05a..3bbbe215 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "cz-git": "^1.7.1", "esbuild": "^0.19.8", "eslint": "^8.54.0", + "eslint-config-prettier": "^9.0.0", "esno": "^4.0.0", "husky": "^8.0.3", "lint-staged": "^15.1.0", @@ -58,8 +59,8 @@ "pnpm": ">=6" }, "lint-staged": { - "*.{js,ts,vue}": [ - "eslint" + "*.{js,ts}": [ + "eslint --fix" ] } } diff --git a/tsconfig.json b/tsconfig.json index 9e772874..b84ed4cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,14 +20,5 @@ "types": ["node"], "rootDir": "." }, - "ts-node": { - "esm": true, - }, - "include": [ - "packages/**/*.ts", - "scripts/*.ts", - "packages/web/**/*.vue", - "playground/**/*.vue", - "playground/**/*.ts" - ] + "include": ["**/*.ts", "**/*.vue"] }