From 0c7c8928247a34021108b4dc782effa1c1c4977e Mon Sep 17 00:00:00 2001 From: KANAMORI Yu Date: Thu, 12 Oct 2023 10:54:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20prettier=20v3=20=E7=B3=BB=E3=81=AB?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20(#3827)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: prettier を v3 系に更新 * fix: prettier-plugin-tailwindcss を追加 --- .prettierrc.js | 2 +- package.json | 5 +++-- yarn.lock | 12 +++++++++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index 8be659d922..9dac580fea 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,6 +1,6 @@ module.exports = { ...require('prettier-config-smarthr'), printWidth: 100, - plugins: [require('prettier-plugin-tailwindcss')], + plugins: ['prettier-plugin-tailwindcss'], tailwindFunctions: ['tv'], } diff --git a/package.json b/package.json index a49099916f..37da5c2f99 100644 --- a/package.json +++ b/package.json @@ -70,16 +70,17 @@ "postcss": "^8.4.31", "postcss-styled-syntax": "^0.5.0", "postcss-syntax": "^0.36.2", - "prettier": "^2.8.8", + "prettier": "^3.0.3", "prettier-config-smarthr": "^1.0.0", + "prettier-plugin-tailwindcss": "^0.5.5", "puppeteer": "^21.3.8", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "smarthr-normalize-css": "^1.1.0", "standard-version": "^9.3.2", - "storybook-addon-pseudo-states": "^2.1.1", "storybook": "^7.4.6", + "storybook-addon-pseudo-states": "^2.1.1", "styled-components": "^5.3.11", "styled-reset": "^4.5.1", "stylelint": "^15.10.3", diff --git a/yarn.lock b/yarn.lock index 714706cae1..dc0fb67249 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11159,11 +11159,21 @@ prettier-config-smarthr@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/prettier-config-smarthr/-/prettier-config-smarthr-1.0.0.tgz#1d9ca4c9601db481b3bae701d13107ac868c28d0" -prettier@^2.8.0, prettier@^2.8.8: +prettier-plugin-tailwindcss@^0.5.5: + version "0.5.5" + resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.5.tgz#2860de31772235231339ca5e8c745969532fab95" + integrity sha512-voy0CjWv/CM8yeaduv5ZwovovpTGMR5LbzlhGF+LtEvMJt9wBeVTVnW781hL38R/RcDXCJwN2rolsgr94B/n0Q== + +prettier@^2.8.0: version "2.8.8" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== + pretty-error@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-4.0.0.tgz#90a703f46dd7234adb46d0f84823e9d1cb8f10d6"