From b3a0ed06b78c03a3fe16acfa16188f784c181a33 Mon Sep 17 00:00:00 2001 From: jyboy Date: Wed, 17 Apr 2024 01:24:52 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20Prettier=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc.cjs | 2 +- .vscode/settings.json | 5 +++++ src/pages/TableReservation/TableReservation.jsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 072abc6..7a53853 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -4,7 +4,7 @@ module.exports = { trailingComma: 'none', semi: true, singleQuote: true, - importOrder: ['^@core/(.*)$', '^[./]'], + importOrder: ['^react$', '', '^[./]'], plugins: [ '@trivago/prettier-plugin-sort-imports', 'prettier-plugin-css-order', diff --git a/.vscode/settings.json b/.vscode/settings.json index a9dc161..d07fbf9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,10 @@ }, "editor.quickSuggestions": { "strings": "on" + }, + "prettier.requireConfig": true, + "prettier.configPath": ".prettierrc.cjs", + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" } } diff --git a/src/pages/TableReservation/TableReservation.jsx b/src/pages/TableReservation/TableReservation.jsx index 70cbc0f..5165111 100644 --- a/src/pages/TableReservation/TableReservation.jsx +++ b/src/pages/TableReservation/TableReservation.jsx @@ -1,5 +1,5 @@ -import { useFormik } from 'formik'; import { useEffect } from 'react'; +import { useFormik } from 'formik'; import { useNavigate } from 'react-router-dom'; import { object, string, number, date } from 'yup'; import Button from '../../components/Button/Button';