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"] }