From 3137fc1bed10825e35e6b675f884b398e2f32d6a Mon Sep 17 00:00:00 2001 From: scarf Date: Thu, 7 Sep 2023 19:33:02 +0900 Subject: [PATCH] =?UTF-8?q?build:=20prettier=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 2 +- .prettierrc.yml | 7 +++++++ package.json | 8 +++++--- pnpm-lock.yaml | 12 ++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .prettierrc.yml diff --git a/.eslintrc.json b/.eslintrc.json index e83e38ff..e15ccc99 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,7 @@ "jest": true }, "root": true, - "extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"], + "extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "prettier"], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint", "import"], "parserOptions": { diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 00000000..6589e8e5 --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,7 @@ +semi: true +singleQuote: true +useTabs: false +tabWidth: 2 +trailingComma: all +printWidth: 100 +arrowParens: always diff --git a/package.json b/package.json index d47d4b24..0f5774cd 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,13 @@ }, "dependencies": { "typescript": "5.1.6", - "zod": "^3.22.2", - "@ts-rest/core": "^3.28.0" + "@ts-rest/core": "^3.28.0", + "zod": "^3.22.2" }, "devDependencies": { "@types/node": "18.16.1", - "rome": "^12.1.3" + "eslint-config-prettier": "^9.0.0", + "rome": "^12.1.3", + "typescript": "5.1.6" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3abb761b..b45856f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/node': specifier: 18.16.1 version: 18.16.1 + eslint-config-prettier: + specifier: ^9.0.0 + version: 9.0.0(eslint@8.45.0) rome: specifier: ^12.1.3 version: 12.1.3 @@ -3045,6 +3048,15 @@ packages: semver: 6.3.0 dev: true + /eslint-config-prettier@9.0.0(eslint@8.45.0): + resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.45.0 + dev: true + /eslint-import-resolver-node@0.3.7: resolution: {integrity: sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==} dependencies: